/** * Standard span attributes for workflow tracing * Based on OpenTelemetry semantic conventions + custom workflow attributes */ export declare const TRACE_PARENT_HEADER = "traceparent"; export declare const TRACE_STATE_HEADER = "tracestate"; export declare const BAGGAGE_HEADER = "baggage"; export declare const SERVICE_NAME = "service.name"; export declare const SERVICE_VERSION = "service.version"; export declare const SERVICE_INSTANCE_ID = "service.instance.id"; export declare const WORKFLOW_NAME = "workflow.name"; export declare const WORKFLOW_ID = "workflow.id"; export declare const WORKFLOW_RUN_ID = "workflow.run.id"; export declare const WORKFLOW_VERSION = "workflow.version"; export declare const WORKFLOW_ENTRY_POINT = "workflow.entry_point"; export declare const WORKFLOW_NODE_COUNT = "workflow.node_count"; export declare const WORKFLOW_STATUS = "workflow.status"; export declare const NODE_NAME = "node.name"; export declare const NODE_TYPE = "node.type"; export declare const NODE_INDEX = "node.index"; export declare const NODE_RETRY_COUNT = "node.retry_count"; export declare const NODE_TIMEOUT = "node.timeout"; export declare const NODE_DURATION = "node.duration_ms"; export declare const NODE_STATUS = "node.status"; export declare const LLM_SYSTEM = "llm.system"; export declare const LLM_REQUEST_MODEL = "llm.request.model"; export declare const LLM_RESPONSE_MODEL = "llm.response.model"; export declare const LLM_REQUEST_MAX_TOKENS = "llm.request.max_tokens"; export declare const LLM_REQUEST_TEMPERATURE = "llm.request.temperature"; export declare const LLM_REQUEST_TOP_P = "llm.request.top_p"; export declare const LLM_USAGE_INPUT_TOKENS = "llm.usage.input_tokens"; export declare const LLM_USAGE_OUTPUT_TOKENS = "llm.usage.output_tokens"; export declare const LLM_USAGE_TOTAL_TOKENS = "llm.usage.total_tokens"; export declare const LLM_USAGE_COST = "llm.usage.cost"; export declare const TOOL_NAME = "tool.name"; export declare const TOOL_PARAMETERS = "tool.parameters"; export declare const TOOL_RESULT = "tool.result"; export declare const TOOL_DURATION = "tool.duration_ms"; export declare const TOOL_SUCCESS = "tool.success"; export declare const ERROR_TYPE = "error.type"; export declare const ERROR_MESSAGE = "error.message"; export declare const ERROR_STACK = "error.stack"; export declare const ERROR_CODE = "error.code"; export declare const RETRY_ATTEMPT = "retry.attempt"; export declare const RETRY_MAX = "retry.max"; export declare const RETRY_DELAY = "retry.delay_ms"; export declare const CIRCUIT_BREAKER_STATE = "circuit_breaker.state"; export declare const COMPENSATION_TRIGGERED = "compensation.triggered"; export declare const COMPENSATION_NODE = "compensation.node"; export declare const DEAD_LETTER_QUEUE = "dlq.added"; export declare const APPROVAL_ID = "approval.id"; export declare const APPROVAL_TYPE = "approval.type"; export declare const APPROVAL_STATUS = "approval.status"; export declare const APPROVAL_TIMEOUT = "approval.timeout_ms"; export declare const APPROVAL_ASSIGNEE = "approval.assignee"; export declare const TIMER_TYPE = "timer.type"; export declare const TIMER_DELAY = "timer.delay_ms"; export declare const TIMER_CRON = "timer.cron"; export declare const TIMER_SCHEDULED_AT = "timer.scheduled_at"; export declare const TIMER_FIRED_AT = "timer.fired_at"; export declare const SUBWORKFLOW_NAME = "subworkflow.name"; export declare const SUBWORKFLOW_DEPTH = "subworkflow.depth"; export declare const SUBWORKFLOW_PARENT_ID = "subworkflow.parent_id"; export declare const TRIGGER_TYPE = "trigger.type"; export declare const TRIGGER_ID = "trigger.id"; export declare const TRIGGER_SOURCE = "trigger.source"; export declare const WEBHOOK_PATH = "webhook.path"; export declare const WEBHOOK_METHOD = "webhook.method"; export declare const CRON_EXPRESSION = "cron.expression"; export declare const CRON_NEXT_RUN = "cron.next_run"; /** * Build standard workflow span attributes */ export declare function workflowSpanAttributes(workflowName: string, workflowId: string, runId: string, additionalAttrs?: Record): Record; /** * Build standard node span attributes */ export declare function nodeSpanAttributes(nodeName: string, nodeType: string, nodeIndex: number, additionalAttrs?: Record): Record; /** * Build LLM span attributes from token usage */ export declare function llmSpanAttributes(system: string, model: string, inputTokens: number, outputTokens: number, cost?: number, additionalAttrs?: Record): Record; /** * Build tool span attributes */ export declare function toolSpanAttributes(toolName: string, success: boolean, durationMs: number, additionalAttrs?: Record): Record; /** * Build error span attributes */ export declare function errorSpanAttributes(error: Error, additionalAttrs?: Record): Record; /** * Build retry span attributes */ export declare function retrySpanAttributes(attempt: number, maxAttempts: number, delayMs: number, additionalAttrs?: Record): Record; //# sourceMappingURL=span-attributes.d.ts.map