/** * The name of the OpenTelemetry tracer used by the Durable Task SDK. * This is consistent across all language SDKs for cross-language trace correlation. */ export declare const TRACER_NAME = "Microsoft.DurableTask"; /** * Semantic attribute keys for Durable Task spans. * These follow the conventions established by the .NET SDK for cross-language consistency. */ export declare const DurableTaskAttributes: { /** The type of durable task (e.g., "orchestration", "activity"). */ readonly TYPE: "durabletask.type"; /** The name of the task (orchestration or activity name). */ readonly TASK_NAME: "durabletask.task.name"; /** The version of the task. */ readonly TASK_VERSION: "durabletask.task.version"; /** The instance ID of the orchestration. */ readonly TASK_INSTANCE_ID: "durabletask.task.instance_id"; /** The execution ID of the orchestration. */ readonly TASK_EXECUTION_ID: "durabletask.task.execution_id"; /** The status of the orchestration (e.g., "COMPLETED", "FAILED"). */ readonly TASK_STATUS: "durabletask.task.status"; /** The sequential task ID within an orchestration. */ readonly TASK_TASK_ID: "durabletask.task.task_id"; /** The target instance ID for event operations. */ readonly EVENT_TARGET_INSTANCE_ID: "durabletask.event.target_instance_id"; /** The fire-at time for timer operations. */ readonly FIRE_AT: "durabletask.fire_at"; /** * The DurableTask replay span ID. This is the OTEL span ID from the first * execution of an orchestration, carried forward across replays for correlation. * It may differ from the current OTEL span's spanId on replay invocations. */ readonly REPLAY_SPAN_ID: "durabletask.task.replay_span_id"; /** * The original start time of the orchestration from its first execution, * carried forward across replays for correlation. This is stored as an * ISO-8601 string attribute so that replay spans can start at the current * time (avoiding artificially long span durations) while still preserving * a reference to the original execution start. */ readonly REPLAY_START_TIME: "durabletask.task.replay_start_time"; /** The name of the entity operation (e.g., "add", "get"). */ readonly ENTITY_OPERATION: "durabletask.entity.operation"; /** The target entity instance ID for entity operations. */ readonly ENTITY_INSTANCE_ID: "durabletask.entity.instance_id"; }; /** * Task type values used in the `durabletask.type` attribute. */ export declare const TaskType: { readonly ORCHESTRATION: "orchestration"; readonly ACTIVITY: "activity"; readonly EVENT: "event"; readonly TIMER: "timer"; readonly CREATE_ORCHESTRATION: "create_orchestration"; readonly ORCHESTRATION_EVENT: "orchestration_event"; readonly ENTITY: "entity"; readonly SIGNAL_ENTITY: "signal_entity"; readonly CALL_ENTITY: "call_entity"; }; /** * Creates a span name following the Durable Task naming convention. * * Format: "{type}:{name}" or "{type}:{name}@({version})" * * @param type - The task type (e.g., "orchestration", "activity"). * @param name - The task name. * @param version - An optional task version. * @returns The formatted span name. */ export declare function createSpanName(type: string, name: string, version?: string): string; /** * Creates a timer span name following the Durable Task naming convention. * * Format: "orchestration:{orchName}:timer" * * @param orchestrationName - The name of the parent orchestration. * @returns The formatted timer span name. */ export declare function createTimerSpanName(orchestrationName: string): string;