Documentation
¶
Overview ¶
Package semconv is the LiveKit telemetry semantic conventions as Go constants: the attribute keys, enum values, event names, span names, checkpoints and metric names LiveKit producers send over OTLP, and the legacy-key and legacy-value aliases a consumer uses to normalize an older capture to the canonical names (see RenamedKeys, RenamedValues, KeyAliases and the NormalizeKey, AliasesFor and NormalizeValue helpers).
Index ¶
Constants ¶
const AttrAgentName = "agent_name"
AttrAgentName is the "agent_name" attribute: The agent's name.
const AttrBrowserName = "browser.name"
AttrBrowserName is the "browser.name" attribute: Browser name.
const AttrBrowserVersion = "browser.version"
AttrBrowserVersion is the "browser.version" attribute: Browser version.
const AttrChatItem = "chat.item"
AttrChatItem is the "chat.item" attribute: One chat history item, as a map. Carries conversation content. PII: redacted by the collector.
const AttrCodeFilePath = "code.file.path"
AttrCodeFilePath is the "code.file.path" attribute: The source code filename that identifies the code unit as uniquely as possible (preferably an absolute file path). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.
const AttrCodeFunctionName = "code.function.name"
AttrCodeFunctionName is the "code.function.name" attribute: The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.
const AttrCodeLineNumber = "code.line.number"
AttrCodeLineNumber is the "code.line.number" attribute: The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity.
const AttrConnectionReused = "connection_reused"
AttrConnectionReused is the "connection_reused" attribute: Whether a pooled connection was reused, as the string `true`/`false`.
const AttrDeviceModelIdentifier = "device.model.identifier"
AttrDeviceModelIdentifier is the "device.model.identifier" attribute: The model identifier for the device
const AttrErrorType = "error.type"
AttrErrorType is the "error.type" attribute: Describes a class of error the operation ended with.
const AttrEvaluation = "evaluation"
AttrEvaluation is the "evaluation" attribute: One evaluation result, as a map of string fields.
const AttrExceptionMessage = "exception.message"
AttrExceptionMessage is the "exception.message" attribute: The exception message.
const AttrExceptionStacktrace = "exception.stacktrace"
AttrExceptionStacktrace is the "exception.stacktrace" attribute: A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.
const AttrExceptionType = "exception.type"
AttrExceptionType is the "exception.type" attribute: The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.
const AttrGenAiAgentName = "gen_ai.agent.name"
AttrGenAiAgentName is the "gen_ai.agent.name" attribute: Human-readable name of the GenAI agent provided by the application.
const AttrGenAiConversationId = "gen_ai.conversation.id"
AttrGenAiConversationId is the "gen_ai.conversation.id" attribute: The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.
const AttrGenAiEvaluationExplanation = "gen_ai.evaluation.explanation"
AttrGenAiEvaluationExplanation is the "gen_ai.evaluation.explanation" attribute: A free-form explanation for the assigned score provided by the evaluator.
const AttrGenAiEvaluationName = "gen_ai.evaluation.name"
AttrGenAiEvaluationName is the "gen_ai.evaluation.name" attribute: The name of the evaluation metric used for the GenAI response.
const AttrGenAiEvaluationScoreLabel = "gen_ai.evaluation.score.label"
AttrGenAiEvaluationScoreLabel is the "gen_ai.evaluation.score.label" attribute: Human readable label for evaluation.
const AttrGenAiInputMessages = "gen_ai.input.messages"
AttrGenAiInputMessages is the "gen_ai.input.messages" attribute: The chat history provided to the model as an input.
const AttrGenAiMemoryQueryText = "gen_ai.memory.query.text"
AttrGenAiMemoryQueryText is the "gen_ai.memory.query.text" attribute: The search query used to retrieve memories.
const AttrGenAiMemoryRecords = "gen_ai.memory.records"
AttrGenAiMemoryRecords is the "gen_ai.memory.records" attribute: The memory records stored or retrieved in a memory operation.
const AttrGenAiOperationName = "gen_ai.operation.name"
AttrGenAiOperationName is the "gen_ai.operation.name" attribute: The name of the operation being performed.
const AttrGenAiOutputMessages = "gen_ai.output.messages"
AttrGenAiOutputMessages is the "gen_ai.output.messages" attribute: Messages returned by the model where each message represents a specific model response (choice, candidate).
const AttrGenAiOutputType = "gen_ai.output.type"
AttrGenAiOutputType is the "gen_ai.output.type" attribute: Represents the content type requested by the client.
const AttrGenAiPromptVariable = "gen_ai.prompt.variable"
AttrGenAiPromptVariable is the "gen_ai.prompt.variable" attribute: The variables supplied to the prompt template, the `<key>` being the variable name, the value being the variable value.
const AttrGenAiProviderName = "gen_ai.provider.name"
AttrGenAiProviderName is the "gen_ai.provider.name" attribute: The Generative AI provider as identified by the client or server instrumentation.
const AttrGenAiRequestModel = "gen_ai.request.model"
AttrGenAiRequestModel is the "gen_ai.request.model" attribute: The name of the GenAI model a request is being made to.
const AttrGenAiRequestStream = "gen_ai.request.stream"
AttrGenAiRequestStream is the "gen_ai.request.stream" attribute: Indicates whether the GenAI request was made in streaming mode.
const AttrGenAiResponseFinishReasons = "gen_ai.response.finish_reasons"
AttrGenAiResponseFinishReasons is the "gen_ai.response.finish_reasons" attribute: Array of reasons the model stopped generating tokens, corresponding to each generation received.
const AttrGenAiResponseId = "gen_ai.response.id"
AttrGenAiResponseId is the "gen_ai.response.id" attribute: The unique identifier for the completion.
const AttrGenAiResponseModel = "gen_ai.response.model"
AttrGenAiResponseModel is the "gen_ai.response.model" attribute: The name of the model that generated the response.
const AttrGenAiResponseTimeToFirstChunk = "gen_ai.response.time_to_first_chunk"
AttrGenAiResponseTimeToFirstChunk is the "gen_ai.response.time_to_first_chunk" attribute: Time to first chunk in a streaming response, measured from request issuance, in seconds. The value is measured from when the client issues the generation request to when the first chunk is received in the response stream.
const AttrGenAiRetrievalDocuments = "gen_ai.retrieval.documents"
AttrGenAiRetrievalDocuments is the "gen_ai.retrieval.documents" attribute: The documents retrieved.
const AttrGenAiRetrievalQueryText = "gen_ai.retrieval.query.text"
AttrGenAiRetrievalQueryText is the "gen_ai.retrieval.query.text" attribute: The query text used for retrieval.
const AttrGenAiSystemInstructions = "gen_ai.system_instructions"
AttrGenAiSystemInstructions is the "gen_ai.system_instructions" attribute: The system message or instructions provided to the GenAI model separately from the chat history.
const AttrGenAiTokenType = "gen_ai.token.type"
AttrGenAiTokenType is the "gen_ai.token.type" attribute: Token type (`input` or `output`); deprecated upstream, a dimension of `gen_ai.client.token.usage`.
const AttrGenAiToolCallArguments = "gen_ai.tool.call.arguments"
AttrGenAiToolCallArguments is the "gen_ai.tool.call.arguments" attribute: Parameters passed to the tool call.
const AttrGenAiToolCallId = "gen_ai.tool.call.id"
AttrGenAiToolCallId is the "gen_ai.tool.call.id" attribute: The tool call identifier supplied by the model or provider.
const AttrGenAiToolCallResult = "gen_ai.tool.call.result"
AttrGenAiToolCallResult is the "gen_ai.tool.call.result" attribute: The result returned by the tool call (if any and if execution was successful).
const AttrGenAiToolDefinitions = "gen_ai.tool.definitions"
AttrGenAiToolDefinitions is the "gen_ai.tool.definitions" attribute: The list of tool definitions available to the GenAI agent or model.
const AttrGenAiToolDescription = "gen_ai.tool.description"
AttrGenAiToolDescription is the "gen_ai.tool.description" attribute: The tool description.
const AttrGenAiToolName = "gen_ai.tool.name"
AttrGenAiToolName is the "gen_ai.tool.name" attribute: Name of the tool utilized by the agent.
const AttrGenAiToolType = "gen_ai.tool.type"
AttrGenAiToolType is the "gen_ai.tool.type" attribute: Type of the tool utilized by the agent
const AttrGenAiUsageAudioCacheReadInputTokens = "gen_ai.usage.audio.cache_read.input_tokens"
AttrGenAiUsageAudioCacheReadInputTokens is the "gen_ai.usage.audio.cache_read.input_tokens" attribute: The number of audio input tokens served from a provider-managed cache.
const AttrGenAiUsageAudioInputTokens = "gen_ai.usage.audio.input_tokens"
AttrGenAiUsageAudioInputTokens is the "gen_ai.usage.audio.input_tokens" attribute: The number of audio input tokens.
const AttrGenAiUsageAudioOutputTokens = "gen_ai.usage.audio.output_tokens"
AttrGenAiUsageAudioOutputTokens is the "gen_ai.usage.audio.output_tokens" attribute: The number of audio output tokens.
const AttrGenAiUsageCacheReadInputTokens = "gen_ai.usage.cache_read.input_tokens"
AttrGenAiUsageCacheReadInputTokens is the "gen_ai.usage.cache_read.input_tokens" attribute: The number of input tokens served from a provider-managed cache.
const AttrGenAiUsageCacheWriteInputTokens = "gen_ai.usage.cache_write.input_tokens"
AttrGenAiUsageCacheWriteInputTokens is the "gen_ai.usage.cache_write.input_tokens" attribute: The number of input tokens written to a provider-managed cache.
const AttrGenAiUsageImageCacheReadInputTokens = "gen_ai.usage.image.cache_read.input_tokens"
AttrGenAiUsageImageCacheReadInputTokens is the "gen_ai.usage.image.cache_read.input_tokens" attribute: The number of image input tokens served from a provider-managed cache.
const AttrGenAiUsageImageInputTokens = "gen_ai.usage.image.input_tokens"
AttrGenAiUsageImageInputTokens is the "gen_ai.usage.image.input_tokens" attribute: The number of image input tokens.
const AttrGenAiUsageInputAudioTokens = "gen_ai.usage.input_audio_tokens"
AttrGenAiUsageInputAudioTokens is the "gen_ai.usage.input_audio_tokens" attribute: LangFuse spelling of audio input tokens.
const AttrGenAiUsageInputCachedTokens = "gen_ai.usage.input_cached_tokens"
AttrGenAiUsageInputCachedTokens is the "gen_ai.usage.input_cached_tokens" attribute: LangFuse spelling of cached input tokens.
const AttrGenAiUsageInputTextTokens = "gen_ai.usage.input_text_tokens"
AttrGenAiUsageInputTextTokens is the "gen_ai.usage.input_text_tokens" attribute: LangFuse spelling of text input tokens.
const AttrGenAiUsageInputTokens = "gen_ai.usage.input_tokens"
AttrGenAiUsageInputTokens is the "gen_ai.usage.input_tokens" attribute: The number of tokens used in the GenAI input (prompt).
const AttrGenAiUsageOutputAudioTokens = "gen_ai.usage.output_audio_tokens"
AttrGenAiUsageOutputAudioTokens is the "gen_ai.usage.output_audio_tokens" attribute: LangFuse spelling of audio output tokens.
const AttrGenAiUsageOutputTextTokens = "gen_ai.usage.output_text_tokens"
AttrGenAiUsageOutputTextTokens is the "gen_ai.usage.output_text_tokens" attribute: LangFuse spelling of text output tokens.
const AttrGenAiUsageOutputTokens = "gen_ai.usage.output_tokens"
AttrGenAiUsageOutputTokens is the "gen_ai.usage.output_tokens" attribute: The number of tokens used in the GenAI response (completion).
const AttrGenAiUsageReasoningOutputTokens = "gen_ai.usage.reasoning.output_tokens"
AttrGenAiUsageReasoningOutputTokens is the "gen_ai.usage.reasoning.output_tokens" attribute: The number of output tokens used for reasoning (e.g. chain-of-thought, extended thinking).
const AttrGenAiUsageReasoningTokens = "gen_ai.usage.reasoning_tokens"
AttrGenAiUsageReasoningTokens is the "gen_ai.usage.reasoning_tokens" attribute: LangFuse spelling of reasoning tokens.
const AttrGenAiUsageTextCacheReadInputTokens = "gen_ai.usage.text.cache_read.input_tokens"
AttrGenAiUsageTextCacheReadInputTokens is the "gen_ai.usage.text.cache_read.input_tokens" attribute: The number of text input tokens served from a provider-managed cache.
const AttrGenAiUsageTextInputTokens = "gen_ai.usage.text.input_tokens"
AttrGenAiUsageTextInputTokens is the "gen_ai.usage.text.input_tokens" attribute: The number of text input tokens.
const AttrGenAiUsageTextOutputTokens = "gen_ai.usage.text.output_tokens"
AttrGenAiUsageTextOutputTokens is the "gen_ai.usage.text.output_tokens" attribute: The number of text output tokens.
const AttrGenAiWorkflowName = "gen_ai.workflow.name"
AttrGenAiWorkflowName is the "gen_ai.workflow.name" attribute: Human-readable name of the GenAI workflow provided by the application.
const AttrLangfuseObservationCompletionStartTime = "langfuse.observation.completion_start_time"
AttrLangfuseObservationCompletionStartTime is the "langfuse.observation.completion_start_time" attribute: LangFuse's completion start time (ISO 8601), set next to `gen_ai.response.time_to_first_chunk`.
const AttrLkAgentLabel = "lk.agent_label"
AttrLkAgentLabel is the "lk.agent_label" attribute: Label of the agent running the activity.
const AttrLkAgentName = "lk.agent_name"
AttrLkAgentName is the "lk.agent_name" attribute: Name of the agent a job was dispatched to.
const AttrLkAmdCategory = "lk.amd.category"
AttrLkAmdCategory is the "lk.amd.category" attribute: AMD classification.
const AttrLkAmdDelay = "lk.amd.delay"
AttrLkAmdDelay is the "lk.amd.delay" attribute: Seconds from the call start to the AMD decision. Unit: `s`.
const AttrLkAmdReason = "lk.amd.reason"
AttrLkAmdReason is the "lk.amd.reason" attribute: Why the AMD classifier decided.
const AttrLkAmdSpeechDuration = "lk.amd.speech_duration"
AttrLkAmdSpeechDuration is the "lk.amd.speech_duration" attribute: Seconds of speech the AMD classifier heard. Unit: `s`.
const AttrLkBlockingCount = "lk.blocking.count"
AttrLkBlockingCount is the "lk.blocking.count" attribute: Blocks in the session.
const AttrLkBlockingCpuTime = "lk.blocking.cpu_time"
AttrLkBlockingCpuTime is the "lk.blocking.cpu_time" attribute: CPU seconds the loop thread consumed during the block. Unit: `s`.
const AttrLkBlockingDuration = "lk.blocking.duration"
AttrLkBlockingDuration is the "lk.blocking.duration" attribute: Seconds the loop was blocked. Unit: `s`.
const AttrLkBlockingGcTime = "lk.blocking.gc_time"
AttrLkBlockingGcTime is the "lk.blocking.gc_time" attribute: Seconds of garbage collection on the loop thread during the block. Unit: `s`.
const AttrLkBlockingImport = "lk.blocking.import"
AttrLkBlockingImport is the "lk.blocking.import" attribute: Module a lazy import was loading when sampled.
const AttrLkBlockingMaxDuration = "lk.blocking.max_duration"
AttrLkBlockingMaxDuration is the "lk.blocking.max_duration" attribute: Seconds of the longest block in the session. Unit: `s`.
const AttrLkBlockingSeverity = "lk.blocking.severity"
AttrLkBlockingSeverity is the "lk.blocking.severity" attribute: Severity bucket of the block.
const AttrLkBlockingStack = "lk.blocking.stack"
AttrLkBlockingStack is the "lk.blocking.stack" attribute: Loop-thread stack sampled while blocked (source locations only).
const AttrLkBlockingSuppressed = "lk.blocking.suppressed"
AttrLkBlockingSuppressed is the "lk.blocking.suppressed" attribute: Reports dropped by rate limiting since the previous emitted span.
const AttrLkBlockingTask = "lk.blocking.task"
AttrLkBlockingTask is the "lk.blocking.task" attribute: Name of the task that was running.
const AttrLkBlockingThreshold = "lk.blocking.threshold"
AttrLkBlockingThreshold is the "lk.blocking.threshold" attribute: Seconds above which a block is reported. Unit: `s`.
const AttrLkBlockingTotalDuration = "lk.blocking.total_duration"
AttrLkBlockingTotalDuration is the "lk.blocking.total_duration" attribute: Seconds blocked in total over the session. Unit: `s`.
const AttrLkCallbackName = "lk.callback.name"
AttrLkCallbackName is the "lk.callback.name" attribute: Name of the shutdown callback.
const AttrLkCloseDrain = "lk.close.drain"
AttrLkCloseDrain is the "lk.close.drain" attribute: The close drained pending speech first.
const AttrLkCloseReason = "lk.close_reason"
AttrLkCloseReason is the "lk.close_reason" attribute: Why the session closed.
const AttrLkCloudAgentId = "lk.cloud_agent_id"
AttrLkCloudAgentId is the "lk.cloud_agent_id" attribute: LiveKit Cloud agent id.
const AttrLkConnectAttempt = "lk.connect.attempt"
AttrLkConnectAttempt is the "lk.connect.attempt" attribute: 1-based connect attempt.
const AttrLkConnectionState = "lk.connection_state"
AttrLkConnectionState is the "lk.connection_state" attribute: Room connection state.
const AttrLkDeploymentId = "lk.deployment_id"
AttrLkDeploymentId is the "lk.deployment_id" attribute: LiveKit Cloud deployment id.
const AttrLkDeviceAppState = "lk.device.app_state"
AttrLkDeviceAppState is the "lk.device.app_state" attribute: Whether the app is in front of the user.
const AttrLkDeviceAudioInterruption = "lk.device.audio.interruption"
AttrLkDeviceAudioInterruption is the "lk.device.audio.interruption" attribute: Phase of an audio session interruption.
const AttrLkDeviceAudioRouteOutputs = "lk.device.audio_route.outputs"
AttrLkDeviceAudioRouteOutputs is the "lk.device.audio_route.outputs" attribute: The active outputs, comma-separated.
const AttrLkDeviceAudioRouteReason = "lk.device.audio_route.reason"
AttrLkDeviceAudioRouteReason is the "lk.device.audio_route.reason" attribute: Why the audio route changed.
const AttrLkDeviceBatteryCharging = "lk.device.battery.charging"
AttrLkDeviceBatteryCharging is the "lk.device.battery.charging" attribute: The device is charging.
const AttrLkDeviceBatteryLevel = "lk.device.battery.level"
AttrLkDeviceBatteryLevel is the "lk.device.battery.level" attribute: Battery charge in percent, 0-100. Unit: `%`.
const AttrLkDeviceCaptureDevice = "lk.device.capture.device"
AttrLkDeviceCaptureDevice is the "lk.device.capture.device" attribute: Capture device that failed.
const AttrLkDeviceCaptureReason = "lk.device.capture.reason"
AttrLkDeviceCaptureReason is the "lk.device.capture.reason" attribute: Why capture failed, in the getUserMedia failure taxonomy.
const AttrLkDeviceLowPowerEnabled = "lk.device.low_power.enabled"
AttrLkDeviceLowPowerEnabled is the "lk.device.low_power.enabled" attribute: Low Power Mode / Battery Saver is on.
const AttrLkDeviceMemoryPressure = "lk.device.memory.pressure"
AttrLkDeviceMemoryPressure is the "lk.device.memory.pressure" attribute: Memory pressure as the OS reports it.
const AttrLkDeviceNetworkConstrained = "lk.device.network.constrained"
AttrLkDeviceNetworkConstrained is the "lk.device.network.constrained" attribute: The user asked for less traffic (Low Data Mode, Data Saver).
const AttrLkDeviceNetworkExpensive = "lk.device.network.expensive"
AttrLkDeviceNetworkExpensive is the "lk.device.network.expensive" attribute: The network is metered (cellular, personal hotspot).
const AttrLkDeviceThermalState = "lk.device.thermal.state"
AttrLkDeviceThermalState is the "lk.device.thermal.state" attribute: Thermal pressure as the OS reports it.
const AttrLkDisconnectReason = "lk.disconnect_reason"
AttrLkDisconnectReason is the "lk.disconnect_reason" attribute: Why a participant left the room, as the protobuf `DisconnectReason` enum name.
const AttrLkDispatchId = "lk.dispatch_id"
AttrLkDispatchId is the "lk.dispatch_id" attribute: Agent dispatch id.
const AttrLkE2eLatency = "lk.e2e_latency"
AttrLkE2eLatency is the "lk.e2e_latency" attribute: Seconds from the end of the user's speech to the agent's first audio. Unit: `s`.
const AttrLkEndOfTurnDelay = "lk.end_of_turn_delay"
AttrLkEndOfTurnDelay is the "lk.end_of_turn_delay" attribute: Seconds from the end of speech to the turn decision. Unit: `s`.
const AttrLkEouDetectionDelay = "lk.eou.detection_delay"
AttrLkEouDetectionDelay is the "lk.eou.detection_delay" attribute: Seconds the detector inference took. Unit: `s`.
const AttrLkEouEndpointingDelay = "lk.eou.endpointing_delay"
AttrLkEouEndpointingDelay is the "lk.eou.endpointing_delay" attribute: Seconds of endpointing delay applied. Unit: `s`.
const AttrLkEouFromCache = "lk.eou.from_cache"
AttrLkEouFromCache is the "lk.eou.from_cache" attribute: The detector answer came from the cache.
const AttrLkEouLanguage = "lk.eou.language"
AttrLkEouLanguage is the "lk.eou.language" attribute: Language the detector ran for.
const AttrLkEouNotCommittedCount = "lk.eou.not_committed_count"
AttrLkEouNotCommittedCount is the "lk.eou.not_committed_count" attribute: Turn decisions the wait rejected before it ended.
const AttrLkEouOutcome = "lk.eou.outcome"
AttrLkEouOutcome is the "lk.eou.outcome" attribute: How the endpointing wait ended.
const AttrLkEouProbability = "lk.eou.probability"
AttrLkEouProbability is the "lk.eou.probability" attribute: End-of-utterance probability.
const AttrLkEouRearmCount = "lk.eou.rearm_count"
AttrLkEouRearmCount is the "lk.eou.rearm_count" attribute: Times the endpointing wait restarted on a later trigger.
const AttrLkEouResumeCount = "lk.eou.resume_count"
AttrLkEouResumeCount is the "lk.eou.resume_count" attribute: Endpointing waits the user cut short by speaking again.
const AttrLkEouSource = "lk.eou.source"
AttrLkEouSource is the "lk.eou.source" attribute: What decided the end of the turn.
const AttrLkEouUnlikelyThreshold = "lk.eou.unlikely_threshold"
AttrLkEouUnlikelyThreshold is the "lk.eou.unlikely_threshold" attribute: Threshold under which the turn is unlikely to be over.
const AttrLkEouWaitDuration = "lk.eou.wait_duration"
AttrLkEouWaitDuration is the "lk.eou.wait_duration" attribute: Seconds from the end of the user's speech to the turn decision. Unit: `s`.
const AttrLkErrorRetryable = "lk.error.retryable"
AttrLkErrorRetryable is the "lk.error.retryable" attribute: The provider error is retryable (Node binding).
const AttrLkFail = "lk.fail"
AttrLkFail is the "lk.fail" attribute: The session report is tagged failed.
const AttrLkFallbackIndex = "lk.fallback.index"
AttrLkFallbackIndex is the "lk.fallback.index" attribute: Index of the fallback instance that served the request.
const AttrLkFallbackLabel = "lk.fallback.label"
AttrLkFallbackLabel is the "lk.fallback.label" attribute: Label of the fallback instance that served the request.
const AttrLkFallbackRecovery = "lk.fallback.recovery"
AttrLkFallbackRecovery is the "lk.fallback.recovery" attribute: The request was a recovery probe of a failed instance.
const AttrLkFirstFrameDelay = "lk.first_frame_delay"
AttrLkFirstFrameDelay is the "lk.first_frame_delay" attribute: Seconds from waiting for a track to its first frame. Unit: `s`.
const AttrLkFrameResolution = "lk.frame.resolution"
AttrLkFrameResolution is the "lk.frame.resolution" attribute: How the inbound frame of a plugin-task metric was resolved (Node binding).
const AttrLkFunctionToolId = "lk.function_tool.id"
AttrLkFunctionToolId is the "lk.function_tool.id" attribute: Tool call id.
const AttrLkFunctionToolIsError = "lk.function_tool.is_error"
AttrLkFunctionToolIsError is the "lk.function_tool.is_error" attribute: The tool returned an error.
const AttrLkFunctionToolName = "lk.function_tool.name"
AttrLkFunctionToolName is the "lk.function_tool.name" attribute: Tool name.
const AttrLkFunctionTools = "lk.function_tools"
AttrLkFunctionTools is the "lk.function_tools" attribute: Function tool names offered.
const AttrLkGenerationCount = "lk.generation_count"
AttrLkGenerationCount is the "lk.generation_count" attribute: Generations in the turn.
const AttrLkGenerationId = "lk.generation_id"
AttrLkGenerationId is the "lk.generation_id" attribute: Id of the agent turn (generation).
const AttrLkInputBaseSpanId = "lk.input.base_span_id"
AttrLkInputBaseSpanId is the "lk.input.base_span_id" attribute: Span whose input record this one continues.
const AttrLkInputDelta = "lk.input.delta"
AttrLkInputDelta is the "lk.input.delta" attribute: The span's input record is a delta over its base span.
const AttrLkInputDroppedFromBase = "lk.input.dropped_from_base"
AttrLkInputDroppedFromBase is the "lk.input.dropped_from_base" attribute: Items of the base record not carried into this one.
const AttrLkInterrupted = "lk.interrupted"
AttrLkInterrupted is the "lk.interrupted" attribute: The speech was interrupted.
const AttrLkInterruptionDetectionDelay = "lk.interruption.detection_delay"
AttrLkInterruptionDetectionDelay is the "lk.interruption.detection_delay" attribute: Seconds from the user's speech to the interruption decision. Unit: `s`.
const AttrLkInterruptionPredictionDuration = "lk.interruption.prediction_duration"
AttrLkInterruptionPredictionDuration is the "lk.interruption.prediction_duration" attribute: Seconds the interruption prediction took. Unit: `s`.
const AttrLkInterruptionProbability = "lk.interruption.probability"
AttrLkInterruptionProbability is the "lk.interruption.probability" attribute: Interruption probability.
const AttrLkInterruptionSource = "lk.interruption.source"
AttrLkInterruptionSource is the "lk.interruption.source" attribute: What triggered the interruption.
const AttrLkInterruptionTotalDuration = "lk.interruption.total_duration"
AttrLkInterruptionTotalDuration is the "lk.interruption.total_duration" attribute: Seconds of the interruption from detection to resolution. Unit: `s`.
const AttrLkIsInterruption = "lk.is_interruption"
AttrLkIsInterruption is the "lk.is_interruption" attribute: The user turn was classified as an interruption.
const AttrLkJobAcceptLatency = "lk.job.accept_latency"
AttrLkJobAcceptLatency is the "lk.job.accept_latency" attribute: Seconds from the job request to its acceptance. Unit: `s`.
const AttrLkJobAgentId = "lk.job.agent_id"
AttrLkJobAgentId is the "lk.job.agent_id" attribute: Agent id of the job.
const AttrLkJobAssignmentLatency = "lk.job.assignment_latency"
AttrLkJobAssignmentLatency is the "lk.job.assignment_latency" attribute: Seconds from acceptance to the job assignment. Unit: `s`.
const AttrLkJobDispatchLatency = "lk.job.dispatch_latency"
AttrLkJobDispatchLatency is the "lk.job.dispatch_latency" attribute: Seconds from the dispatch request to the entrypoint running. Unit: `s`.
const AttrLkJobEntrypointLatency = "lk.job.entrypoint_latency"
AttrLkJobEntrypointLatency is the "lk.job.entrypoint_latency" attribute: Seconds from launch to the entrypoint running. Unit: `s`.
const AttrLkJobId = "lk.job_id"
AttrLkJobId is the "lk.job_id" attribute: Agent job ID (`AJ_...`).
const AttrLkJobLaunchLatency = "lk.job.launch_latency"
AttrLkJobLaunchLatency is the "lk.job.launch_latency" attribute: Seconds from assignment to the job process launch. Unit: `s`.
const AttrLkJobWorkerId = "lk.job.worker_id"
AttrLkJobWorkerId is the "lk.job.worker_id" attribute: Worker id the job runs on.
const AttrLkKeytermsAdded = "lk.keyterms.added"
AttrLkKeytermsAdded is the "lk.keyterms.added" attribute: Keyterms added by the update.
const AttrLkKeytermsCount = "lk.keyterms.count"
AttrLkKeytermsCount is the "lk.keyterms.count" attribute: Number of keyterms configured.
const AttrLkKeytermsRemoved = "lk.keyterms.removed"
AttrLkKeytermsRemoved is the "lk.keyterms.removed" attribute: Keyterms removed by the update.
const AttrLkLlmMetrics = "lk.llm_metrics"
AttrLkLlmMetrics is the "lk.llm_metrics" attribute: LLM metrics of the turn, serialized.
const AttrLkLogLogger = "lk.log.logger"
AttrLkLogLogger is the "lk.log.logger" attribute: Logger, type, module or file that wrote the line.
const AttrLkLogSource = "lk.log.source"
AttrLkLogSource is the "lk.log.source" attribute: Which layer wrote the log line.
const AttrLkMetric = "lk.metric"
AttrLkMetric is the "lk.metric" attribute: Metric type noted from a plugin task (Node binding `metrics` span).
const AttrLkNewState = "lk.new_state"
AttrLkNewState is the "lk.new_state" attribute: State after a transition.
const AttrLkOldState = "lk.old_state"
AttrLkOldState is the "lk.old_state" attribute: State before a transition.
const AttrLkOnUserTurnCompletedDelay = "lk.on_user_turn_completed_delay"
AttrLkOnUserTurnCompletedDelay is the "lk.on_user_turn_completed_delay" attribute: Seconds the `on_user_turn_completed` hook took. Unit: `s`.
const AttrLkOutcome = "lk.outcome"
AttrLkOutcome is the "lk.outcome" attribute: How the attempt ended. Rollups read this, never the span status.
const AttrLkParentGenerationId = "lk.parent_generation_id"
AttrLkParentGenerationId is the "lk.parent_generation_id" attribute: Generation this one continues (a tool-call follow-up).
const AttrLkParticipantId = "lk.participant_id"
AttrLkParticipantId is the "lk.participant_id" attribute: Server-assigned SID of the local participant (`PA_...`).
const AttrLkParticipantKind = "lk.participant_kind"
AttrLkParticipantKind is the "lk.participant_kind" attribute: Kind of the linked participant (protocol `ParticipantInfo.Kind`).
const AttrLkPiiAmdTranscript = "lk.pii.amd.transcript"
AttrLkPiiAmdTranscript is the "lk.pii.amd.transcript" attribute: Transcript the AMD classifier used. PII: redacted by the collector.
const AttrLkPiiArguments = "lk.pii.arguments"
AttrLkPiiArguments is the "lk.pii.arguments" attribute: Tool-call arguments on a log record. PII: redacted by the collector.
const AttrLkPiiChatCtx = "lk.pii.chat_ctx"
AttrLkPiiChatCtx is the "lk.pii.chat_ctx" attribute: Serialized chat context sent to the LLM. PII: redacted by the collector.
const AttrLkPiiDtmfInputs = "lk.pii.dtmf_inputs"
AttrLkPiiDtmfInputs is the "lk.pii.dtmf_inputs" attribute: DTMF digits received. PII: redacted by the collector.
const AttrLkPiiError = "lk.pii.error"
AttrLkPiiError is the "lk.pii.error" attribute: Error text that may quote user content. PII: redacted by the collector.
const AttrLkPiiEvent = "lk.pii.event"
AttrLkPiiEvent is the "lk.pii.event" attribute: Raw provider event on a debug log record. PII: redacted by the collector.
const AttrLkPiiFunctionToolArguments = "lk.pii.function_tool.arguments"
AttrLkPiiFunctionToolArguments is the "lk.pii.function_tool.arguments" attribute: Tool call arguments. PII: redacted by the collector.
const AttrLkPiiFunctionToolOutput = "lk.pii.function_tool.output"
AttrLkPiiFunctionToolOutput is the "lk.pii.function_tool.output" attribute: Tool output. PII: redacted by the collector.
const AttrLkPiiInputText = "lk.pii.input_text"
AttrLkPiiInputText is the "lk.pii.input_text" attribute: Text sent to the TTS. PII: redacted by the collector.
const AttrLkPiiInstructions = "lk.pii.instructions"
AttrLkPiiInstructions is the "lk.pii.instructions" attribute: Agent instructions in force. PII: redacted by the collector.
const AttrLkPiiInterimTranscript = "lk.pii.interim_transcript"
AttrLkPiiInterimTranscript is the "lk.pii.interim_transcript" attribute: An interim (non-final) transcript, on a log record. PII: redacted by the collector.
const AttrLkPiiKeyterms = "lk.pii.keyterms"
AttrLkPiiKeyterms is the "lk.pii.keyterms" attribute: The keyterms themselves (customer vocabulary). PII: redacted by the collector.
const AttrLkPiiOutput = "lk.pii.output"
AttrLkPiiOutput is the "lk.pii.output" attribute: Tool-call output on a log record. PII: redacted by the collector.
const AttrLkPiiParticipantIdentity = "lk.pii.participant_identity"
AttrLkPiiParticipantIdentity is the "lk.pii.participant_identity" attribute: Customer-supplied identity of the local participant. PII: redacted by the collector.
const AttrLkPiiProgressMessage = "lk.pii.progress_message"
AttrLkPiiProgressMessage is the "lk.pii.progress_message" attribute: MCP tool progress message. PII: redacted by the collector.
const AttrLkPiiRawArguments = "lk.pii.raw_arguments"
AttrLkPiiRawArguments is the "lk.pii.raw_arguments" attribute: Malformed tool-call arguments as received. PII: redacted by the collector.
const AttrLkPiiRemoteParticipantIdentity = "lk.pii.remote_participant_identity"
AttrLkPiiRemoteParticipantIdentity is the "lk.pii.remote_participant_identity" attribute: Customer-supplied identity of the remote participant a record is about (the publisher, on subscribe). PII: redacted by the collector.
const AttrLkPiiRepaired = "lk.pii.repaired"
AttrLkPiiRepaired is the "lk.pii.repaired" attribute: Tool-call arguments after repair. PII: redacted by the collector.
const AttrLkPiiResponseFunctionCalls = "lk.pii.response.function_calls"
AttrLkPiiResponseFunctionCalls is the "lk.pii.response.function_calls" attribute: Function calls the LLM produced, serialized. PII: redacted by the collector.
const AttrLkPiiResponseText = "lk.pii.response.text"
AttrLkPiiResponseText is the "lk.pii.response.text" attribute: Text the LLM produced. PII: redacted by the collector.
const AttrLkPiiRoomName = "lk.pii.room_name"
AttrLkPiiRoomName is the "lk.pii.room_name" attribute: Customer-supplied room name. PII: redacted by the collector.
const AttrLkPiiRpcPayload = "lk.pii.rpc.payload"
AttrLkPiiRpcPayload is the "lk.pii.rpc.payload" attribute: RPC request payload. PII: redacted by the collector.
const AttrLkPiiRpcResponse = "lk.pii.rpc.response"
AttrLkPiiRpcResponse is the "lk.pii.rpc.response" attribute: RPC response payload. PII: redacted by the collector.
const AttrLkPiiSipPhoneNumber = "lk.pii.sip.phoneNumber"
AttrLkPiiSipPhoneNumber is the "lk.pii.sip.phoneNumber" attribute: Phone number of a SIP participant. PII: redacted by the collector.
const AttrLkPiiText = "lk.pii.text"
AttrLkPiiText is the "lk.pii.text" attribute: Message text on a log record. PII: redacted by the collector.
const AttrLkPiiTranscript = "lk.pii.transcript"
AttrLkPiiTranscript is the "lk.pii.transcript" attribute: Transcript text on a log record. PII: redacted by the collector.
const AttrLkPiiUserInput = "lk.pii.user_input"
AttrLkPiiUserInput is the "lk.pii.user_input" attribute: The user's transcript for the turn. PII: redacted by the collector.
const AttrLkPiiUserTranscript = "lk.pii.user_transcript"
AttrLkPiiUserTranscript is the "lk.pii.user_transcript" attribute: Transcript the detector scored. PII: redacted by the collector.
const AttrLkPingSeq = "lk.ping.seq"
AttrLkPingSeq is the "lk.ping.seq" attribute: Monotonically increasing sequence number per pipeline.
const AttrLkPlayoutPosition = "lk.playout.position"
AttrLkPlayoutPosition is the "lk.playout.position" attribute: Seconds of the agent's speech played out when it was interrupted. Unit: `s`.
const AttrLkPreConnectAudioDuration = "lk.pre_connect_audio.duration"
AttrLkPreConnectAudioDuration is the "lk.pre_connect_audio.duration" attribute: Seconds of pre-connect audio replayed. Unit: `s`.
const AttrLkPreviousAgentLabel = "lk.previous_agent_label"
AttrLkPreviousAgentLabel is the "lk.previous_agent_label" attribute: Label of the agent handed off from.
const AttrLkProviderRequestIds = "lk.provider_request_ids"
AttrLkProviderRequestIds is the "lk.provider_request_ids" attribute: Provider request ids a span covers, for joining against provider logs.
const AttrLkProviderTools = "lk.provider_tools"
AttrLkProviderTools is the "lk.provider_tools" attribute: Provider-side tool names offered.
const AttrLkRealtimeModelMetrics = "lk.realtime_model_metrics"
AttrLkRealtimeModelMetrics is the "lk.realtime_model_metrics" attribute: Realtime model metrics of the turn, serialized.
const AttrLkReconnectAttempts = "lk.reconnect.attempts"
AttrLkReconnectAttempts is the "lk.reconnect.attempts" attribute: Reconnect attempts made in the cycle.
const AttrLkReconnectMode = "lk.reconnect.mode"
AttrLkReconnectMode is the "lk.reconnect.mode" attribute: Mode of the last reconnect attempt.
const AttrLkReconnectReason = "lk.reconnect.reason"
AttrLkReconnectReason is the "lk.reconnect.reason" attribute: What triggered the reconnect cycle.
const AttrLkRedactionEnabled = "lk.redaction.enabled"
AttrLkRedactionEnabled is the "lk.redaction.enabled" attribute: PII redaction was requested for the session.
const AttrLkResponseTtfb = "lk.response.ttfb"
AttrLkResponseTtfb is the "lk.response.ttfb" attribute: Seconds to the first TTS audio byte. Unit: `s`.
const AttrLkResponseTtft = "lk.response.ttft"
AttrLkResponseTtft is the "lk.response.ttft" attribute: Seconds to the first LLM token. Unit: `s`.
const AttrLkRetryCount = "lk.retry_count"
AttrLkRetryCount is the "lk.retry_count" attribute: Retries before the operation succeeded or gave up.
const AttrLkRoomAutoSubscribe = "lk.room.auto_subscribe"
AttrLkRoomAutoSubscribe is the "lk.room.auto_subscribe" attribute: The room was joined with auto-subscribe.
const AttrLkRoomE2ee = "lk.room.e2ee"
AttrLkRoomE2ee is the "lk.room.e2ee" attribute: End-to-end encryption is on.
const AttrLkRoomId = "lk.room_id"
AttrLkRoomId is the "lk.room_id" attribute: Server-assigned room session SID (`RM_...`).
const AttrLkRoomIoParticipantFilter = "lk.room_io.participant_filter"
AttrLkRoomIoParticipantFilter is the "lk.room_io.participant_filter" attribute: How room I/O picked its participant.
const AttrLkRoomRemoteParticipantCount = "lk.room.remote_participant_count"
AttrLkRoomRemoteParticipantCount is the "lk.room.remote_participant_count" attribute: Remote participants when the agent connected.
const AttrLkRpcCallerIdentity = "lk.rpc.caller_identity"
AttrLkRpcCallerIdentity is the "lk.rpc.caller_identity" attribute: Identity of the RPC caller.
const AttrLkRpcDestinationIdentity = "lk.rpc.destination_identity"
AttrLkRpcDestinationIdentity is the "lk.rpc.destination_identity" attribute: Identity the RPC is sent to.
const AttrLkRpcErrorCode = "lk.rpc.error_code"
AttrLkRpcErrorCode is the "lk.rpc.error_code" attribute: RPC error code.
const AttrLkRpcHandlerRegistered = "lk.rpc.handler_registered"
AttrLkRpcHandlerRegistered is the "lk.rpc.handler_registered" attribute: A handler was registered for the method.
const AttrLkRpcPayloadSize = "lk.rpc.payload_size"
AttrLkRpcPayloadSize is the "lk.rpc.payload_size" attribute: RPC request payload size in bytes. Unit: `By`.
const AttrLkRpcRequestId = "lk.rpc.request_id"
AttrLkRpcRequestId is the "lk.rpc.request_id" attribute: RPC request id.
const AttrLkRpcResponseSize = "lk.rpc.response_size"
AttrLkRpcResponseSize is the "lk.rpc.response_size" attribute: RPC response size in bytes. Unit: `By`.
const AttrLkRpcResponseTimeout = "lk.rpc.response_timeout"
AttrLkRpcResponseTimeout is the "lk.rpc.response_timeout" attribute: RPC response timeout in seconds. Unit: `s`.
const AttrLkRtcAudioLevelAvg = "lk.rtc.audio_level.avg"
AttrLkRtcAudioLevelAvg is the "lk.rtc.audio_level.avg" attribute: Average audio level in the window, 0-1, inbound audio. Unit: `1`.
const AttrLkRtcAudioLevelMax = "lk.rtc.audio_level.max"
AttrLkRtcAudioLevelMax is the "lk.rtc.audio_level.max" attribute: Maximum audio level in the window, 0-1, inbound audio. Unit: `1`.
const AttrLkRtcAudioLevelMin = "lk.rtc.audio_level.min"
AttrLkRtcAudioLevelMin is the "lk.rtc.audio_level.min" attribute: Minimum audio level in the window, 0-1, inbound audio. Unit: `1`.
const AttrLkRtcBytes = "lk.rtc.bytes"
AttrLkRtcBytes is the "lk.rtc.bytes" attribute: Bytes sent or received (cumulative). Unit: `By`.
const AttrLkRtcCodec = "lk.rtc.codec"
AttrLkRtcCodec is the "lk.rtc.codec" attribute: Codec mimeType, when known.
const AttrLkRtcConcealedSamples = "lk.rtc.concealed_samples"
AttrLkRtcConcealedSamples is the "lk.rtc.concealed_samples" attribute: Concealed audio samples, inbound audio (cumulative). Unit: `{sample}`.
const AttrLkRtcConcealmentEvents = "lk.rtc.concealment_events"
AttrLkRtcConcealmentEvents is the "lk.rtc.concealment_events" attribute: Concealment events, inbound audio (cumulative). Unit: `{event}`.
const AttrLkRtcFpsAvg = "lk.rtc.fps.avg"
AttrLkRtcFpsAvg is the "lk.rtc.fps.avg" attribute: Average frame rate in the window, video. Unit: `{frame}/s`.
const AttrLkRtcFpsMax = "lk.rtc.fps.max"
AttrLkRtcFpsMax is the "lk.rtc.fps.max" attribute: Maximum frame rate in the window, video. Unit: `{frame}/s`.
const AttrLkRtcFpsMin = "lk.rtc.fps.min"
AttrLkRtcFpsMin is the "lk.rtc.fps.min" attribute: Minimum frame rate in the window, video. Unit: `{frame}/s`.
const AttrLkRtcFreezeCount = "lk.rtc.freeze_count"
AttrLkRtcFreezeCount is the "lk.rtc.freeze_count" attribute: Video freezes, inbound video (cumulative). Unit: `{freeze}`.
const AttrLkRtcFreezesDurationMs = "lk.rtc.freezes_duration_ms"
AttrLkRtcFreezesDurationMs is the "lk.rtc.freezes_duration_ms" attribute: Total freeze time, inbound video (cumulative). Unit: `ms`.
const AttrLkRtcInterruptionCount = "lk.rtc.interruption_count"
AttrLkRtcInterruptionCount is the "lk.rtc.interruption_count" attribute: Audio interruptions, inbound audio (cumulative). Unit: `{interruption}`.
const AttrLkRtcInterruptionsDurationMs = "lk.rtc.interruptions_duration_ms"
AttrLkRtcInterruptionsDurationMs is the "lk.rtc.interruptions_duration_ms" attribute: Total interruption time, inbound audio (cumulative). Unit: `ms`.
const AttrLkRtcJitterBufferDelayMs = "lk.rtc.jitter_buffer_delay_ms"
AttrLkRtcJitterBufferDelayMs is the "lk.rtc.jitter_buffer_delay_ms" attribute: Jitter buffer delay, inbound (cumulative). Unit: `ms`.
const AttrLkRtcJitterBufferEmittedCount = "lk.rtc.jitter_buffer_emitted_count"
AttrLkRtcJitterBufferEmittedCount is the "lk.rtc.jitter_buffer_emitted_count" attribute: Samples or frames emitted by the jitter buffer, inbound (cumulative). Unit: `{sample}`.
const AttrLkRtcJitterMsAvg = "lk.rtc.jitter_ms.avg"
AttrLkRtcJitterMsAvg is the "lk.rtc.jitter_ms.avg" attribute: Average jitter in the window, inbound. Unit: `ms`.
const AttrLkRtcJitterMsMax = "lk.rtc.jitter_ms.max"
AttrLkRtcJitterMsMax is the "lk.rtc.jitter_ms.max" attribute: Maximum jitter in the window, inbound. Unit: `ms`.
const AttrLkRtcJitterMsMin = "lk.rtc.jitter_ms.min"
AttrLkRtcJitterMsMin is the "lk.rtc.jitter_ms.min" attribute: Minimum jitter in the window, inbound. Unit: `ms`.
const AttrLkRtcPackets = "lk.rtc.packets"
AttrLkRtcPackets is the "lk.rtc.packets" attribute: Packets sent or received (cumulative). Unit: `{packet}`.
const AttrLkRtcPacketsLost = "lk.rtc.packets_lost"
AttrLkRtcPacketsLost is the "lk.rtc.packets_lost" attribute: Packets lost, inbound (cumulative). Unit: `{packet}`.
const AttrLkRtcPauseCount = "lk.rtc.pause_count"
AttrLkRtcPauseCount is the "lk.rtc.pause_count" attribute: Video pauses, inbound video (cumulative). Unit: `{pause}`.
const AttrLkRtcPausesDurationMs = "lk.rtc.pauses_duration_ms"
AttrLkRtcPausesDurationMs is the "lk.rtc.pauses_duration_ms" attribute: Total pause time, inbound video (cumulative). Unit: `ms`.
const AttrLkRtcQualityLimitationBandwidthMs = "lk.rtc.quality_limitation.bandwidth_ms"
AttrLkRtcQualityLimitationBandwidthMs is the "lk.rtc.quality_limitation.bandwidth_ms" attribute: Time the encoder was limited by bandwidth, outbound video (cumulative). Unit: `ms`.
const AttrLkRtcQualityLimitationCpuMs = "lk.rtc.quality_limitation.cpu_ms"
AttrLkRtcQualityLimitationCpuMs is the "lk.rtc.quality_limitation.cpu_ms" attribute: Time the encoder was limited by CPU, outbound video (cumulative). Unit: `ms`.
const AttrLkRtcQualityLimitationOtherMs = "lk.rtc.quality_limitation.other_ms"
AttrLkRtcQualityLimitationOtherMs is the "lk.rtc.quality_limitation.other_ms" attribute: Time the encoder was limited for other reasons, outbound video (cumulative). Unit: `ms`.
const AttrLkRtcRttMsAvg = "lk.rtc.rtt_ms.avg"
AttrLkRtcRttMsAvg is the "lk.rtc.rtt_ms.avg" attribute: Average round-trip time in the window. Unit: `ms`.
const AttrLkRtcRttMsMax = "lk.rtc.rtt_ms.max"
AttrLkRtcRttMsMax is the "lk.rtc.rtt_ms.max" attribute: Maximum round-trip time in the window. Unit: `ms`.
const AttrLkRtcRttMsMin = "lk.rtc.rtt_ms.min"
AttrLkRtcRttMsMin is the "lk.rtc.rtt_ms.min" attribute: Minimum round-trip time in the window. Unit: `ms`.
const AttrLkRtcSamples = "lk.rtc.samples"
AttrLkRtcSamples is the "lk.rtc.samples" attribute: Stats readings folded into the window. Unit: `{reading}`.
const AttrLkRtcSilentConcealedSamples = "lk.rtc.silent_concealed_samples"
AttrLkRtcSilentConcealedSamples is the "lk.rtc.silent_concealed_samples" attribute: Concealed samples that were silent, inbound audio (cumulative). Unit: `{sample}`.
const AttrLkRtcWindowMs = "lk.rtc.window_ms"
AttrLkRtcWindowMs is the "lk.rtc.window_ms" attribute: Actual length of the stats window. Unit: `ms`.
const AttrLkSdkName = "lk.sdk.name"
AttrLkSdkName is the "lk.sdk.name" attribute: LiveKit SDK name.
const AttrLkSdkVersion = "lk.sdk.version"
AttrLkSdkVersion is the "lk.sdk.version" attribute: LiveKit SDK version.
const AttrLkShutdownReason = "lk.shutdown.reason"
AttrLkShutdownReason is the "lk.shutdown.reason" attribute: Why the job shut down.
const AttrLkShutdownUserInitiated = "lk.shutdown.user_initiated"
AttrLkShutdownUserInitiated is the "lk.shutdown.user_initiated" attribute: The shutdown was requested by user code.
const AttrLkSimulationEnabled = "lk.simulation.enabled"
AttrLkSimulationEnabled is the "lk.simulation.enabled" attribute: The session is a simulation.
const AttrLkSimulationJobId = "lk.simulation.job_id"
AttrLkSimulationJobId is the "lk.simulation.job_id" attribute: Simulation run job (one scenario) behind the session.
const AttrLkSimulationRunId = "lk.simulation.run_id"
AttrLkSimulationRunId is the "lk.simulation.run_id" attribute: Simulation run the session belongs to.
const AttrLkSpeechId = "lk.speech_id"
AttrLkSpeechId is the "lk.speech_id" attribute: Id of the speech handle a span belongs to.
const AttrLkSpeechQueueWait = "lk.speech.queue_wait"
AttrLkSpeechQueueWait is the "lk.speech.queue_wait" attribute: Seconds a speech handle waited in the queue before generation was authorized. Unit: `s`.
const AttrLkSttEvents = "lk.stt.events"
AttrLkSttEvents is the "lk.stt.events" attribute: JSON list of transcript events on the user turn, in arrival order (received_at, type, transcript_length).
const AttrLkSuccess = "lk.success"
AttrLkSuccess is the "lk.success" attribute: The session report is tagged successful.
const AttrLkTelemetryCacheBatches = "lk.telemetry.cache.batches"
AttrLkTelemetryCacheBatches is the "lk.telemetry.cache.batches" attribute: Batches waiting in the cache now. Unit: `{batch}`.
const AttrLkTelemetryCacheDeleteErrors = "lk.telemetry.cache.delete_errors"
AttrLkTelemetryCacheDeleteErrors is the "lk.telemetry.cache.delete_errors" attribute: Sent batches the cache could not delete; never sent twice from the same launch. Unit: `{batch}`.
const AttrLkTelemetryCacheListErrors = "lk.telemetry.cache.list_errors"
AttrLkTelemetryCacheListErrors is the "lk.telemetry.cache.list_errors" attribute: Times the cache could not be listed, so nothing was reconciled or sent. Unit: `{attempt}`.
const AttrLkTelemetryCacheReadErrors = "lk.telemetry.cache.read_errors"
AttrLkTelemetryCacheReadErrors is the "lk.telemetry.cache.read_errors" attribute: Cached batches that could not be read right now, kept for the next pass. Unit: `{batch}`.
const AttrLkTelemetryCacheWriteErrors = "lk.telemetry.cache.write_errors"
AttrLkTelemetryCacheWriteErrors is the "lk.telemetry.cache.write_errors" attribute: Batches the disk refused, kept in memory instead. Unit: `{batch}`.
const AttrLkTelemetryDroppedCacheError = "lk.telemetry.dropped.cache_error"
AttrLkTelemetryDroppedCacheError is the "lk.telemetry.dropped.cache_error" attribute: Records no cache, not even memory, could take. Unit: `{record}`.
const AttrLkTelemetryDroppedCacheFull = "lk.telemetry.dropped.cache_full"
AttrLkTelemetryDroppedCacheFull is the "lk.telemetry.dropped.cache_full" attribute: Records evicted by the cache's size or file-count bound. Unit: `{record}`.
const AttrLkTelemetryDroppedCorrupt = "lk.telemetry.dropped.corrupt"
AttrLkTelemetryDroppedCorrupt is the "lk.telemetry.dropped.corrupt" attribute: Records in cached batches that failed their CRC. Unit: `{record}`.
const AttrLkTelemetryDroppedExpired = "lk.telemetry.dropped.expired"
AttrLkTelemetryDroppedExpired is the "lk.telemetry.dropped.expired" attribute: Records in batches past the cache's age limit. Unit: `{record}`.
const AttrLkTelemetryDroppedInvalid = "lk.telemetry.dropped.invalid"
AttrLkTelemetryDroppedInvalid is the "lk.telemetry.dropped.invalid" attribute: Custom events, attributes or SDK strings over the limits, rejected. Unit: `{record}`.
const AttrLkTelemetryDroppedOversized = "lk.telemetry.dropped.oversized"
AttrLkTelemetryDroppedOversized is the "lk.telemetry.dropped.oversized" attribute: Single records larger than the collector accepts (413). Unit: `{record}`.
const AttrLkTelemetryDroppedQueueFull = "lk.telemetry.dropped.queue_full"
AttrLkTelemetryDroppedQueueFull is the "lk.telemetry.dropped.queue_full" attribute: Records evicted from the in-memory queue. Unit: `{record}`.
const AttrLkTelemetryDroppedRateLimited = "lk.telemetry.dropped.rate_limited"
AttrLkTelemetryDroppedRateLimited is the "lk.telemetry.dropped.rate_limited" attribute: Discrete events dropped by the flood guard. Unit: `{record}`.
const AttrLkTelemetryDroppedRejected = "lk.telemetry.dropped.rejected"
AttrLkTelemetryDroppedRejected is the "lk.telemetry.dropped.rejected" attribute: Records the collector rejected (final 4xx/5xx, OTLP partial success). Unit: `{record}`.
const AttrLkTelemetryDroppedThrottled = "lk.telemetry.dropped.throttled"
AttrLkTelemetryDroppedThrottled is the "lk.telemetry.dropped.throttled" attribute: Records evicted from the cache during a server-directed pause. Unit: `{record}`.
const AttrLkTelemetryDroppedUnattributed = "lk.telemetry.dropped.unattributed"
AttrLkTelemetryDroppedUnattributed is the "lk.telemetry.dropped.unattributed" attribute: Log lines from a Room-shaped logging context with no telemetry scope behind it, dropped. Unit: `{record}`.
const AttrLkTelemetryHoldsCapped = "lk.telemetry.holds.capped"
AttrLkTelemetryHoldsCapped is the "lk.telemetry.holds.capped" attribute: Soft upload holds that reached their cap. Unit: `{hold}`.
const AttrLkTelemetryUploadsBytes = "lk.telemetry.uploads.bytes"
AttrLkTelemetryUploadsBytes is the "lk.telemetry.uploads.bytes" attribute: Compressed bytes the collector accepted. Unit: `By`.
const AttrLkTelemetryUploadsFailed = "lk.telemetry.uploads.failed"
AttrLkTelemetryUploadsFailed is the "lk.telemetry.uploads.failed" attribute: Upload attempts that failed transiently (no answer, 429, 5xx). Unit: `{attempt}`.
const AttrLkTelemetryUploadsSent = "lk.telemetry.uploads.sent"
AttrLkTelemetryUploadsSent is the "lk.telemetry.uploads.sent" attribute: Batches the collector accepted. Unit: `{batch}`.
const AttrLkTelemetryUploadsTimeouts = "lk.telemetry.uploads.timeouts"
AttrLkTelemetryUploadsTimeouts is the "lk.telemetry.uploads.timeouts" attribute: Upload attempts that hit the export timeout. Unit: `{attempt}`.
AttrLkTelemetryUploadsUnauthorized is the "lk.telemetry.uploads.unauthorized" attribute: 401/403 answers (tokens the collector refused). Unit: `{attempt}`.
const AttrLkToolSets = "lk.tool_sets"
AttrLkToolSets is the "lk.tool_sets" attribute: Tool set names offered.
const AttrLkTrackDirection = "lk.track.direction"
AttrLkTrackDirection is the "lk.track.direction" attribute: Whether the stats describe sent or received media.
const AttrLkTrackId = "lk.track_id"
AttrLkTrackId is the "lk.track_id" attribute: Server-assigned track SID (`TR_...`).
const AttrLkTrackKind = "lk.track.kind"
AttrLkTrackKind is the "lk.track.kind" attribute: Media kind of the track.
const AttrLkTrackSource = "lk.track_source"
AttrLkTrackSource is the "lk.track_source" attribute: Source of the track, as the Agents RTC FFI `TrackSource` enum name.
const AttrLkTranscriptConfidence = "lk.transcript_confidence"
AttrLkTranscriptConfidence is the "lk.transcript_confidence" attribute: Confidence of the final transcript.
const AttrLkTranscriptionDelay = "lk.transcription_delay"
AttrLkTranscriptionDelay is the "lk.transcription_delay" attribute: Seconds from the end of speech to the final transcript. Unit: `s`.
const AttrLkTtsBytes = "lk.tts.bytes"
AttrLkTtsBytes is the "lk.tts.bytes" attribute: Audio bytes the TTS driver collected (Node binding). Unit: `By`.
const AttrLkTtsFrames = "lk.tts.frames"
AttrLkTtsFrames is the "lk.tts.frames" attribute: Audio frames the TTS driver collected (Node binding).
const AttrLkTtsLabel = "lk.tts.label"
AttrLkTtsLabel is the "lk.tts.label" attribute: Label of the TTS instance.
const AttrLkTtsMetrics = "lk.tts_metrics"
AttrLkTtsMetrics is the "lk.tts_metrics" attribute: TTS metrics of the turn, serialized.
const AttrLkTtsNoDuplexPath = "lk.tts.no_duplex_path"
AttrLkTtsNoDuplexPath is the "lk.tts.no_duplex_path" attribute: The TTS reported no duplex path, so the stream adapter was selected (Node binding; not a failure).
const AttrLkTtsStreaming = "lk.tts.streaming"
AttrLkTtsStreaming is the "lk.tts.streaming" attribute: The TTS instance streams (duplex path).
const AttrModelName = "model_name"
AttrModelName is the "model_name" attribute: Model name the plugin reported.
const AttrModelProvider = "model_provider"
AttrModelProvider is the "model_provider" attribute: Provider the plugin reported.
const AttrNetworkConnectionType = "network.connection.type"
AttrNetworkConnectionType is the "network.connection.type" attribute: The internet connection type.
const AttrOsName = "os.name"
AttrOsName is the "os.name" attribute: Human readable operating system name.
const AttrOsVersion = "os.version"
AttrOsVersion is the "os.version" attribute: The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes).
const AttrOtelEventName = "otel.event.name"
AttrOtelEventName is the "otel.event.name" attribute: Identifies the class / type of event.
const AttrOutcome = "outcome"
AttrOutcome is the "outcome" attribute: The session outcome, as a map with the field `outcome` (`success` or `fail`) and an optional `reason`.
const AttrRpcMethod = "rpc.method"
AttrRpcMethod is the "rpc.method" attribute: The fully-qualified logical name of the method from the RPC interface perspective.
const AttrSdkVersion = "sdk_version"
AttrSdkVersion is the "sdk_version" attribute: The Agents SDK version.
const AttrServiceName = "service.name"
AttrServiceName is the "service.name" attribute: Logical name of the service.
const AttrServiceVersion = "service.version"
AttrServiceVersion is the "service.version" attribute: The version string of the service component. The format is not defined by these conventions.
const AttrSessionId = "session.id"
AttrSessionId is the "session.id" attribute: A unique ID to identify a session.
const AttrSessionOptions = "session.options"
AttrSessionOptions is the "session.options" attribute: The session's options, as a map of option name to value.
const AttrSessionReportTimestamp = "session.report_timestamp"
AttrSessionReportTimestamp is the "session.report_timestamp" attribute: When the report was made, in Unix seconds.
const AttrSessionTags = "session.tags"
AttrSessionTags is the "session.tags" attribute: The session's tags, sorted. Absent when the session has none.
const AttrTag = "tag"
AttrTag is the "tag" attribute: One tag with metadata, as a map with the fields `name` and `metadata`.
const AttrTelemetrySdkLanguage = "telemetry.sdk.language"
AttrTelemetrySdkLanguage is the "telemetry.sdk.language" attribute: The language of the telemetry SDK.
const AttrTelemetrySdkName = "telemetry.sdk.name"
AttrTelemetrySdkName is the "telemetry.sdk.name" attribute: The name of the telemetry SDK as defined above.
const AttrTelemetrySdkVersion = "telemetry.sdk.version"
AttrTelemetrySdkVersion is the "telemetry.sdk.version" attribute: The version string of the telemetry SDK.
const AttrUsage = "usage"
AttrUsage is the "usage" attribute: Model usage, as a list of maps, one per model. Absent when there was none.
const CheckpointAgentStateChanged = "agent_state_changed"
CheckpointAgentStateChanged is the "agent_state_changed" checkpoint: The agent state changed (`lk.old_state` -> `lk.new_state`).
const CheckpointAnswerSent = "answer_sent"
CheckpointAnswerSent is the "answer_sent" checkpoint: The subscriber's SDP answer went out.
const CheckpointEarlyPcCreated = "early_pc_created"
CheckpointEarlyPcCreated is the "early_pc_created" checkpoint: A peer connection was created before the join response (JS port only).
const CheckpointEngine = "engine"
CheckpointEngine is the "engine" checkpoint: The RTC engine is ready (Swift stamps it with pc_connected).
const CheckpointEntrypointCancelled = "entrypoint_cancelled"
CheckpointEntrypointCancelled is the "entrypoint_cancelled" checkpoint: The entrypoint was cancelled.
const CheckpointEntrypointReturned = "entrypoint_returned"
CheckpointEntrypointReturned is the "entrypoint_returned" checkpoint: The entrypoint returned.
const CheckpointEntrypointStarted = "entrypoint_started"
CheckpointEntrypointStarted is the "entrypoint_started" checkpoint: The entrypoint started running.
const CheckpointEventLoopBlocked = "event_loop_blocked"
CheckpointEventLoopBlocked is the "event_loop_blocked" checkpoint: A synchronous block on the event loop, with `lk.blocking.duration`; mirrors the span of the same name.
const CheckpointException = "exception"
CheckpointException is the "exception" checkpoint: The OTel exception event (`exception.*`), recorded on whichever span the exception was caught on; declared here once.
const CheckpointFirstFrame = "first_frame"
CheckpointFirstFrame is the "first_frame" checkpoint: The first frame arrived.
const CheckpointFirstMedia = "first_media"
CheckpointFirstMedia is the "first_media" checkpoint: The first inbound stats reading with bytes; the span ends ok here.
const CheckpointGenAiClientInferenceOperationDetails = "gen_ai.client.inference.operation.details"
CheckpointGenAiClientInferenceOperationDetails is the "gen_ai.client.inference.operation.details" checkpoint: OTel GenAI inference details event (the GenAI registry defines it; events cannot be referenced, so it is named here).
const CheckpointGeneration = "generation"
CheckpointGeneration is the "generation" checkpoint: One generation started (the generation attributes).
const CheckpointJobAccepted = "job_accepted"
CheckpointJobAccepted is the "job_accepted" checkpoint: The worker accepted the job.
const CheckpointJobAssigned = "job_assigned"
CheckpointJobAssigned is the "job_assigned" checkpoint: The server assigned the job.
const CheckpointJobReceived = "job_received"
CheckpointJobReceived is the "job_received" checkpoint: The worker received the job request.
const CheckpointJobStartedOnServer = "job_started_on_server"
CheckpointJobStartedOnServer is the "job_started_on_server" checkpoint: The server-side job start time, as the worker learned it.
const CheckpointJoinRecv = "join_recv"
CheckpointJoinRecv is the "join_recv" checkpoint: The join response arrived.
const CheckpointOfferSent = "offer_sent"
CheckpointOfferSent is the "offer_sent" checkpoint: The publisher's SDP offer went out.
const CheckpointParticipantDisconnected = "participant_disconnected"
CheckpointParticipantDisconnected is the "participant_disconnected" checkpoint: The linked participant left the room, with `lk.disconnect_reason`.
const CheckpointParticipantLinked = "participant_linked"
CheckpointParticipantLinked is the "participant_linked" checkpoint: The session linked to its participant.
const CheckpointPcConnected = "pc_connected"
CheckpointPcConnected is the "pc_connected" checkpoint: The primary peer connection connected.
const CheckpointPcCreated = "pc_created"
CheckpointPcCreated is the "pc_created" checkpoint: The peer connections exist (stamped once the join is adopted).
const CheckpointPreConnectAudio = "pre_connect_audio"
CheckpointPreConnectAudio is the "pre_connect_audio" checkpoint: Pre-connect audio was replayed, with `lk.pre_connect_audio.duration`.
const CheckpointPreemptiveGenerationDiscarded = "preemptive_generation_discarded"
CheckpointPreemptiveGenerationDiscarded is the "preemptive_generation_discarded" checkpoint: A preemptive generation was discarded in favour of this one (`lk.speech_id` of the discarded handle).
const CheckpointProcessAssigned = "process_assigned"
CheckpointProcessAssigned is the "process_assigned" checkpoint: A job process was launched for it.
const CheckpointRearmed = "rearmed"
CheckpointRearmed is the "rearmed" checkpoint: A later trigger re-armed the wait.
const CheckpointRoomConnected = "room_connected"
CheckpointRoomConnected is the "room_connected" checkpoint: The Room reached the connected state.
const CheckpointSignal = "signal"
CheckpointSignal is the "signal" checkpoint: Signaling is up (stamped with ws_open on the web and with join_recv on Swift).
const CheckpointStopResponse = "stop_response"
CheckpointStopResponse is the "stop_response" checkpoint: The hook stopped the response.
const CheckpointSubscribed = "subscribed"
CheckpointSubscribed is the "subscribed" checkpoint: The platform reported the remote track subscribed.
const CheckpointSuperseded = "superseded"
CheckpointSuperseded is the "superseded" checkpoint: A newer detection superseded this one.
const CheckpointTrackSubscribed = "track_subscribed"
CheckpointTrackSubscribed is the "track_subscribed" checkpoint: The track was subscribed, with `lk.track_id` and `lk.track_source`.
const CheckpointUserResumed = "user_resumed"
CheckpointUserResumed is the "user_resumed" checkpoint: The user spoke again during the wait.
const CheckpointUserStateChanged = "user_state_changed"
CheckpointUserStateChanged is the "user_state_changed" checkpoint: The user state changed (`lk.old_state` -> `lk.new_state`).
const CheckpointWsOpen = "ws_open"
CheckpointWsOpen is the "ws_open" checkpoint: The signaling WebSocket opened.
const ErrorTypeOther = "_OTHER"
ErrorTypeOther is a value of AttrErrorType: A fallback error value to be used when the instrumentation doesn't define a custom value.
const EventCustom = "custom"
EventCustom is the "custom" event: Namespace of app-defined events, named `custom.<name>` and carrying the app's own attributes.
const EventGenAiAssistantMessage = "gen_ai.assistant.message"
EventGenAiAssistantMessage is the "gen_ai.assistant.message" event: OTel GenAI assistant message (also a function call), a span event on `llm_node`.
const EventGenAiChoice = "gen_ai.choice"
EventGenAiChoice is the "gen_ai.choice" event: OTel GenAI choice, a span event on `llm_node`.
const EventGenAiSystemMessage = "gen_ai.system.message"
EventGenAiSystemMessage is the "gen_ai.system.message" event: OTel GenAI system (or developer) message, a span event on `llm_node`.
const EventGenAiToolMessage = "gen_ai.tool.message"
EventGenAiToolMessage is the "gen_ai.tool.message" event: OTel GenAI tool message (a function call output), a span event on `llm_node`.
const EventGenAiUserMessage = "gen_ai.user.message"
EventGenAiUserMessage is the "gen_ai.user.message" event: OTel GenAI user message, a span event on `llm_node`.
const EventLkDeviceAppStateChanged = "lk.device.app_state.changed"
EventLkDeviceAppStateChanged is the "lk.device.app_state.changed" event: The app moved to the foreground or background.
const EventLkDeviceAudioInterruption = "lk.device.audio.interruption"
EventLkDeviceAudioInterruption is the "lk.device.audio.interruption" event: An audio session interruption began or ended.
const EventLkDeviceAudioRouteChanged = "lk.device.audio_route.changed"
EventLkDeviceAudioRouteChanged is the "lk.device.audio_route.changed" event: The audio route changed.
const EventLkDeviceBatteryChanged = "lk.device.battery.changed"
EventLkDeviceBatteryChanged is the "lk.device.battery.changed" event: Charging changed, or the level crossed 20 % or 10 % unplugged.
const EventLkDeviceCaptureFailed = "lk.device.capture.failed"
EventLkDeviceCaptureFailed is the "lk.device.capture.failed" event: A capture device failed.
const EventLkDeviceLowPowerChanged = "lk.device.low_power.changed"
EventLkDeviceLowPowerChanged is the "lk.device.low_power.changed" event: Low Power Mode changed.
const EventLkDeviceMemoryChanged = "lk.device.memory.changed"
EventLkDeviceMemoryChanged is the "lk.device.memory.changed" event: Memory pressure changed.
const EventLkDeviceNetworkChanged = "lk.device.network.changed"
EventLkDeviceNetworkChanged is the "lk.device.network.changed" event: The network path changed.
const EventLkDeviceThermalChanged = "lk.device.thermal.changed"
EventLkDeviceThermalChanged is the "lk.device.thermal.changed" event: Thermal state changed.
const EventLkPing = "lk.ping"
EventLkPing is the "lk.ping" event: Pipeline smoke test.
const EventLkRoomDisconnected = "lk.room.disconnected"
EventLkRoomDisconnected is the "lk.room.disconnected" event: The Room left connected for good.
const EventLkRtcStatsSample = "lk.rtc.stats.sample"
EventLkRtcStatsSample is the "lk.rtc.stats.sample" event: One RTC stats window for one track and direction.
const EventLkTelemetryReport = "lk.telemetry.report"
EventLkTelemetryReport is the "lk.telemetry.report" event: Self-telemetry; counts since the previous report.
const GenAiOperationNameChat = "chat"
GenAiOperationNameChat is a value of AttrGenAiOperationName: Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat)
const GenAiOperationNameCreateAgent = "create_agent"
GenAiOperationNameCreateAgent is a value of AttrGenAiOperationName: Create GenAI agent
const GenAiOperationNameCreateMemory = "create_memory"
GenAiOperationNameCreateMemory is a value of AttrGenAiOperationName: Create new memory records
const GenAiOperationNameCreateMemoryStore = "create_memory_store"
GenAiOperationNameCreateMemoryStore is a value of AttrGenAiOperationName: Create or initialize a memory store
const GenAiOperationNameDeleteMemory = "delete_memory"
GenAiOperationNameDeleteMemory is a value of AttrGenAiOperationName: Delete memory records
const GenAiOperationNameDeleteMemoryStore = "delete_memory_store"
GenAiOperationNameDeleteMemoryStore is a value of AttrGenAiOperationName: Delete or deprovision a memory store
const GenAiOperationNameEmbeddings = "embeddings"
GenAiOperationNameEmbeddings is a value of AttrGenAiOperationName: Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create)
const GenAiOperationNameExecuteTool = "execute_tool"
GenAiOperationNameExecuteTool is a value of AttrGenAiOperationName: Execute a tool
const GenAiOperationNameFetchResponse = "fetch_response"
GenAiOperationNameFetchResponse is a value of AttrGenAiOperationName: Fetch a previously generated model response by its identifier, without performing inference, such as [OpenAI Get a model response](https://platform.openai.com/docs/api-reference/responses/get)
const GenAiOperationNameGenerateContent = "generate_content"
GenAiOperationNameGenerateContent is a value of AttrGenAiOperationName: Multimodal content generation operation such as [Gemini Generate Content](https://ai.google.dev/api/generate-content)
const GenAiOperationNameInvokeAgent = "invoke_agent"
GenAiOperationNameInvokeAgent is a value of AttrGenAiOperationName: Invoke GenAI agent
const GenAiOperationNameInvokeWorkflow = "invoke_workflow"
GenAiOperationNameInvokeWorkflow is a value of AttrGenAiOperationName: Invoke GenAI workflow
const GenAiOperationNamePlan = "plan"
GenAiOperationNamePlan is a value of AttrGenAiOperationName: Agent planning or task decomposition phase
const GenAiOperationNameRetrieval = "retrieval"
GenAiOperationNameRetrieval is a value of AttrGenAiOperationName: Retrieval operation such as [OpenAI Search Vector Store API](https://platform.openai.com/docs/api-reference/vector-stores/search)
const GenAiOperationNameSearchMemory = "search_memory"
GenAiOperationNameSearchMemory is a value of AttrGenAiOperationName: Search/query memories from a memory store
const GenAiOperationNameTextCompletion = "text_completion"
GenAiOperationNameTextCompletion is a value of AttrGenAiOperationName: Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions)
const GenAiOperationNameUpdateMemory = "update_memory"
GenAiOperationNameUpdateMemory is a value of AttrGenAiOperationName: Update existing memory records
const GenAiOperationNameUpsertMemory = "upsert_memory"
GenAiOperationNameUpsertMemory is a value of AttrGenAiOperationName: Create or update memory records without the caller choosing which
const GenAiOutputTypeImage = "image"
GenAiOutputTypeImage is a value of AttrGenAiOutputType: Image
const GenAiOutputTypeJson = "json"
GenAiOutputTypeJson is a value of AttrGenAiOutputType: JSON object with known or unknown schema
const GenAiOutputTypeSpeech = "speech"
GenAiOutputTypeSpeech is a value of AttrGenAiOutputType: Speech
const GenAiOutputTypeText = "text"
GenAiOutputTypeText is a value of AttrGenAiOutputType: Plain text
const GenAiProviderNameAnthropic = "anthropic"
GenAiProviderNameAnthropic is a value of AttrGenAiProviderName: [Anthropic](https://www.anthropic.com/)
const GenAiProviderNameAwsBedrock = "aws.bedrock"
GenAiProviderNameAwsBedrock is a value of AttrGenAiProviderName: [AWS Bedrock](https://aws.amazon.com/bedrock)
const GenAiProviderNameAzureAiInference = "azure.ai.inference"
GenAiProviderNameAzureAiInference is a value of AttrGenAiProviderName: Azure AI Inference
const GenAiProviderNameAzureAiOpenai = "azure.ai.openai"
GenAiProviderNameAzureAiOpenai is a value of AttrGenAiProviderName: [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/overview)
const GenAiProviderNameCohere = "cohere"
GenAiProviderNameCohere is a value of AttrGenAiProviderName: [Cohere](https://cohere.com/)
const GenAiProviderNameDeepseek = "deepseek"
GenAiProviderNameDeepseek is a value of AttrGenAiProviderName: [DeepSeek](https://www.deepseek.com/)
const GenAiProviderNameGcpGemini = "gcp.gemini"
GenAiProviderNameGcpGemini is a value of AttrGenAiProviderName: [Gemini](https://cloud.google.com/products/gemini)
const GenAiProviderNameGcpGenAi = "gcp.gen_ai"
GenAiProviderNameGcpGenAi is a value of AttrGenAiProviderName: Any Google generative AI endpoint
const GenAiProviderNameGcpVertexAi = "gcp.vertex_ai"
GenAiProviderNameGcpVertexAi is a value of AttrGenAiProviderName: [Vertex AI](https://cloud.google.com/vertex-ai)
const GenAiProviderNameGroq = "groq"
GenAiProviderNameGroq is a value of AttrGenAiProviderName: [Groq](https://groq.com/)
const GenAiProviderNameIbmWatsonxAi = "ibm.watsonx.ai"
GenAiProviderNameIbmWatsonxAi is a value of AttrGenAiProviderName: [IBM Watsonx AI](https://www.ibm.com/products/watsonx-ai)
const GenAiProviderNameMistral = "mistral"
GenAiProviderNameMistral is a value of AttrGenAiProviderName: [Mistral](https://mistral.ai/)
const GenAiProviderNameMistralAi = "mistral_ai"
GenAiProviderNameMistralAi is a value of AttrGenAiProviderName: Mistral, as Agents sends it. The upstream member is `mistral`. Sent by LiveKit, not an upstream value.
const GenAiProviderNameMoonshotAi = "moonshot_ai"
GenAiProviderNameMoonshotAi is a value of AttrGenAiProviderName: [Moonshot AI](https://www.moonshot.ai/)
const GenAiProviderNameOpenai = "openai"
GenAiProviderNameOpenai is a value of AttrGenAiProviderName: [OpenAI](https://openai.com/)
const GenAiProviderNamePerplexity = "perplexity"
GenAiProviderNamePerplexity is a value of AttrGenAiProviderName: [Perplexity](https://www.perplexity.ai/)
const GenAiProviderNameXAi = "x_ai"
GenAiProviderNameXAi is a value of AttrGenAiProviderName: [xAI](https://x.ai/)
const GenAiResponseFinishReasonsCompaction = "compaction"
GenAiResponseFinishReasonsCompaction is a value of AttrGenAiResponseFinishReasons: Declared in Agents' `GenAIFinishReason`. No Agents code path sends it today. Sent by LiveKit, not an upstream value.
const GenAiResponseFinishReasonsContentFilter = "content_filter"
GenAiResponseFinishReasonsContentFilter is a value of AttrGenAiResponseFinishReasons: A content filter stopped the output. Sent by LiveKit, not an upstream value.
const GenAiResponseFinishReasonsError = "error"
GenAiResponseFinishReasonsError is a value of AttrGenAiResponseFinishReasons: The generation ended abnormally. The upstream note names this value. Sent by LiveKit, not an upstream value.
const GenAiResponseFinishReasonsLength = "length"
GenAiResponseFinishReasonsLength is a value of AttrGenAiResponseFinishReasons: The output reached the token limit. Sent by LiveKit, not an upstream value.
const GenAiResponseFinishReasonsStop = "stop"
GenAiResponseFinishReasonsStop is a value of AttrGenAiResponseFinishReasons: The generation finished normally. Sent by LiveKit, not an upstream value.
const GenAiResponseFinishReasonsToolCall = "tool_call"
GenAiResponseFinishReasonsToolCall is a value of AttrGenAiResponseFinishReasons: The generation ended with a tool call. Sent by LiveKit, not an upstream value.
const LkDeviceAppStateBackground = "background"
LkDeviceAppStateBackground is a value of AttrLkDeviceAppState: In the background.
const LkDeviceAppStateForeground = "foreground"
LkDeviceAppStateForeground is a value of AttrLkDeviceAppState: In front of the user.
const LkDeviceAudioInterruptionBegan = "began"
LkDeviceAudioInterruptionBegan is a value of AttrLkDeviceAudioInterruption: Interruption began (another app or a call took the audio session).
const LkDeviceAudioInterruptionEnded = "ended"
LkDeviceAudioInterruptionEnded is a value of AttrLkDeviceAudioInterruption: Interruption ended.
const LkDeviceAudioRouteReasonCategoryChange = "category_change"
LkDeviceAudioRouteReasonCategoryChange is a value of AttrLkDeviceAudioRouteReason: The audio session category changed.
const LkDeviceAudioRouteReasonNewDevice = "new_device"
LkDeviceAudioRouteReasonNewDevice is a value of AttrLkDeviceAudioRouteReason: A new output became available.
const LkDeviceAudioRouteReasonNoSuitableRoute = "no_suitable_route"
LkDeviceAudioRouteReasonNoSuitableRoute is a value of AttrLkDeviceAudioRouteReason: No route fits the category.
LkDeviceAudioRouteReasonOldDeviceUnavailable is a value of AttrLkDeviceAudioRouteReason: The previous output went away.
const LkDeviceAudioRouteReasonOverride = "override"
LkDeviceAudioRouteReasonOverride is a value of AttrLkDeviceAudioRouteReason: The route was overridden.
const LkDeviceAudioRouteReasonRouteConfigurationChange = "route_configuration_change"
LkDeviceAudioRouteReasonRouteConfigurationChange is a value of AttrLkDeviceAudioRouteReason: The route's configuration changed.
const LkDeviceAudioRouteReasonUnknown = "unknown"
LkDeviceAudioRouteReasonUnknown is a value of AttrLkDeviceAudioRouteReason: The platform gave no reason.
const LkDeviceAudioRouteReasonWakeFromSleep = "wake_from_sleep"
LkDeviceAudioRouteReasonWakeFromSleep is a value of AttrLkDeviceAudioRouteReason: The device woke from sleep.
const LkDeviceCaptureDeviceCamera = "camera"
LkDeviceCaptureDeviceCamera is a value of AttrLkDeviceCaptureDevice: Camera.
const LkDeviceCaptureDeviceMicrophone = "microphone"
LkDeviceCaptureDeviceMicrophone is a value of AttrLkDeviceCaptureDevice: Microphone.
LkDeviceCaptureDeviceScreenShare is a value of AttrLkDeviceCaptureDevice: Screen capture.
const LkDeviceCaptureReasonDisconnected = "disconnected"
LkDeviceCaptureReasonDisconnected is a value of AttrLkDeviceCaptureReason: The device went away.
const LkDeviceCaptureReasonInUse = "in_use"
LkDeviceCaptureReasonInUse is a value of AttrLkDeviceCaptureReason: Another app holds the device.
const LkDeviceCaptureReasonNotFound = "not_found"
LkDeviceCaptureReasonNotFound is a value of AttrLkDeviceCaptureReason: No such device.
const LkDeviceCaptureReasonOther = "other"
LkDeviceCaptureReasonOther is a value of AttrLkDeviceCaptureReason: Anything else.
const LkDeviceCaptureReasonPermissionDenied = "permission_denied"
LkDeviceCaptureReasonPermissionDenied is a value of AttrLkDeviceCaptureReason: The user or OS denied access.
const LkDeviceMemoryPressureCritical = "critical"
LkDeviceMemoryPressureCritical is a value of AttrLkDeviceMemoryPressure: Critically low memory.
const LkDeviceMemoryPressureNormal = "normal"
LkDeviceMemoryPressureNormal is a value of AttrLkDeviceMemoryPressure: No pressure.
const LkDeviceMemoryPressureWarning = "warning"
LkDeviceMemoryPressureWarning is a value of AttrLkDeviceMemoryPressure: Low memory.
const LkDeviceThermalStateCritical = "critical"
LkDeviceThermalStateCritical is a value of AttrLkDeviceThermalState: Critical; the device needs to cool down.
const LkDeviceThermalStateFair = "fair"
LkDeviceThermalStateFair is a value of AttrLkDeviceThermalState: Slightly elevated.
const LkDeviceThermalStateNominal = "nominal"
LkDeviceThermalStateNominal is a value of AttrLkDeviceThermalState: Within normal limits.
const LkDeviceThermalStateSerious = "serious"
LkDeviceThermalStateSerious is a value of AttrLkDeviceThermalState: High; the system reduces performance.
const LkDisconnectReasonAgentError = "AGENT_ERROR"
LkDisconnectReasonAgentError is a value of AttrLkDisconnectReason: The agent failed.
const LkDisconnectReasonClientInitiated = "CLIENT_INITIATED"
LkDisconnectReasonClientInitiated is a value of AttrLkDisconnectReason: The participant hung up.
const LkDisconnectReasonConnectionTimeout = "CONNECTION_TIMEOUT"
LkDisconnectReasonConnectionTimeout is a value of AttrLkDisconnectReason: The server timed out the session.
const LkDisconnectReasonDuplicateIdentity = "DUPLICATE_IDENTITY"
LkDisconnectReasonDuplicateIdentity is a value of AttrLkDisconnectReason: Another participant joined with the same identity.
const LkDisconnectReasonJoinFailure = "JOIN_FAILURE"
LkDisconnectReasonJoinFailure is a value of AttrLkDisconnectReason: The client could not connect fully.
const LkDisconnectReasonMediaFailure = "MEDIA_FAILURE"
LkDisconnectReasonMediaFailure is a value of AttrLkDisconnectReason: Media failed or timed out.
const LkDisconnectReasonMigration = "MIGRATION"
LkDisconnectReasonMigration is a value of AttrLkDisconnectReason: The server asked the participant to migrate (Cloud only).
const LkDisconnectReasonParticipantRemoved = "PARTICIPANT_REMOVED"
LkDisconnectReasonParticipantRemoved is a value of AttrLkDisconnectReason: RoomService.RemoveParticipant was called.
const LkDisconnectReasonReconnectFailed = "RECONNECT_FAILED"
LkDisconnectReasonReconnectFailed is a value of AttrLkDisconnectReason: The client ran out of reconnect attempts (client only, not a protobuf value).
const LkDisconnectReasonRoomClosed = "ROOM_CLOSED"
LkDisconnectReasonRoomClosed is a value of AttrLkDisconnectReason: The room closed after its participants left.
const LkDisconnectReasonRoomDeleted = "ROOM_DELETED"
LkDisconnectReasonRoomDeleted is a value of AttrLkDisconnectReason: RoomService.DeleteRoom was called.
const LkDisconnectReasonServerShutdown = "SERVER_SHUTDOWN"
LkDisconnectReasonServerShutdown is a value of AttrLkDisconnectReason: The server instance shut down.
const LkDisconnectReasonSignalClose = "SIGNAL_CLOSE"
LkDisconnectReasonSignalClose is a value of AttrLkDisconnectReason: The signal WebSocket closed unexpectedly.
const LkDisconnectReasonSipTrunkFailure = "SIP_TRUNK_FAILURE"
LkDisconnectReasonSipTrunkFailure is a value of AttrLkDisconnectReason: SIP protocol failure.
const LkDisconnectReasonStateMismatch = "STATE_MISMATCH"
LkDisconnectReasonStateMismatch is a value of AttrLkDisconnectReason: The server did not know the session the client tried to resume.
const LkDisconnectReasonUnknownReason = "UNKNOWN_REASON"
LkDisconnectReasonUnknownReason is a value of AttrLkDisconnectReason: No reason given, or a number the producer does not know.
const LkDisconnectReasonUserRejected = "USER_REJECTED"
LkDisconnectReasonUserRejected is a value of AttrLkDisconnectReason: The SIP callee rejected the call.
LkDisconnectReasonUserUnavailable is a value of AttrLkDisconnectReason: The SIP callee did not answer in time.
const LkEouOutcomeCommitted = "committed"
LkEouOutcomeCommitted is a value of AttrLkEouOutcome: The turn was committed.
const LkEouOutcomeDropped = "dropped"
LkEouOutcomeDropped is a value of AttrLkEouOutcome: The turn was dropped.
const LkEouOutcomeUserResumed = "user_resumed"
LkEouOutcomeUserResumed is a value of AttrLkEouOutcome: The user spoke again.
const LkFrameResolutionLive = "live"
LkFrameResolutionLive is a value of AttrLkFrameResolution: A live speech frame.
const LkFrameResolutionRoot = "root"
LkFrameResolutionRoot is a value of AttrLkFrameResolution: The root frame.
const LkFrameResolutionStale = "stale"
LkFrameResolutionStale is a value of AttrLkFrameResolution: A frame whose speech already ended.
const LkFrameResolutionUnknown = "unknown"
LkFrameResolutionUnknown is a value of AttrLkFrameResolution: Not a frame the slab knows.
const LkLogSourceFfi = "ffi"
LkLogSourceFfi is a value of AttrLkLogSource: The Rust core, copied by the log forwarder with JWT-shaped substrings masked as `<jwt>`.
const LkLogSourceSdk = "sdk"
LkLogSourceSdk is a value of AttrLkLogSource: The platform SDK.
const LkLogSourceWebrtc = "webrtc"
LkLogSourceWebrtc is a value of AttrLkLogSource: WebRTC.
const LkOutcomeCancelled = "cancelled"
LkOutcomeCancelled is a value of AttrLkOutcome: Cancelled by the caller or superseded; span status Unset.
const LkOutcomeError = "error"
LkOutcomeError is a value of AttrLkOutcome: Failed; span status Error, with `error.type` when the failure has a type.
const LkOutcomeOk = "ok"
LkOutcomeOk is a value of AttrLkOutcome: Succeeded; span status Unset.
const LkReconnectModeFull = "full"
LkReconnectModeFull is a value of AttrLkReconnectMode: Reconnect from scratch.
const LkReconnectModeQuick = "quick"
LkReconnectModeQuick is a value of AttrLkReconnectMode: Resume the session (ICE restart).
const LkReconnectReasonDebug = "debug"
LkReconnectReasonDebug is a value of AttrLkReconnectReason: A test or a debug menu asked for it (client only).
const LkReconnectReasonNetworkChanged = "network_changed"
LkReconnectReasonNetworkChanged is a value of AttrLkReconnectReason: The device moved to another network (client only).
const LkReconnectReasonPublisherFailed = "publisher_failed"
LkReconnectReasonPublisherFailed is a value of AttrLkReconnectReason: The publisher peer connection failed (RR_PUBLISHER_FAILED).
const LkReconnectReasonSignalDisconnected = "signal_disconnected"
LkReconnectReasonSignalDisconnected is a value of AttrLkReconnectReason: The signaling socket closed (RR_SIGNAL_DISCONNECTED).
const LkReconnectReasonSubscriberFailed = "subscriber_failed"
LkReconnectReasonSubscriberFailed is a value of AttrLkReconnectReason: The subscriber peer connection failed (RR_SUBSCRIBER_FAILED).
const LkReconnectReasonSwitchCandidate = "switch_candidate"
LkReconnectReasonSwitchCandidate is a value of AttrLkReconnectReason: The server asked for a candidate switch (RR_SWITCH_CANDIDATE).
const LkReconnectReasonTransportFailed = "transport_failed"
LkReconnectReasonTransportFailed is a value of AttrLkReconnectReason: A peer connection failed and the platform did not say which (client only).
const LkReconnectReasonUnknown = "unknown"
LkReconnectReasonUnknown is a value of AttrLkReconnectReason: RR_UNKNOWN or a number the client does not know.
const LkTrackDirectionInbound = "inbound"
LkTrackDirectionInbound is a value of AttrLkTrackDirection: Received media (inbound-rtp).
const LkTrackDirectionOutbound = "outbound"
LkTrackDirectionOutbound is a value of AttrLkTrackDirection: Sent media (outbound-rtp).
const LkTrackKindAudio = "audio"
LkTrackKindAudio is a value of AttrLkTrackKind: Audio.
const LkTrackKindVideo = "video"
LkTrackKindVideo is a value of AttrLkTrackKind: Video.
const LkTrackSourceSourceCamera = "SOURCE_CAMERA"
LkTrackSourceSourceCamera is a value of AttrLkTrackSource: Camera.
const LkTrackSourceSourceMicrophone = "SOURCE_MICROPHONE"
LkTrackSourceSourceMicrophone is a value of AttrLkTrackSource: Microphone.
LkTrackSourceSourceScreenshare is a value of AttrLkTrackSource: Screen share video.
LkTrackSourceSourceScreenshareAudio is a value of AttrLkTrackSource: Screen share audio.
const LkTrackSourceSourceUnknown = "SOURCE_UNKNOWN"
LkTrackSourceSourceUnknown is a value of AttrLkTrackSource: Unknown source.
const MetricGenAiClientOperationDuration = "gen_ai.client.operation.duration"
MetricGenAiClientOperationDuration is the "gen_ai.client.operation.duration" metric: GenAI operation duration, as the GenAI registry defines it (declared here because weaver cannot import it). Instrument: histogram, unit: `s`.
const MetricGenAiClientOperationDurationUnit = "s"
MetricGenAiClientOperationDurationUnit is the unit of MetricGenAiClientOperationDuration, exactly as the producer creates the instrument (empty = none).
const MetricGenAiClientOperationTimeToFirstChunk = "gen_ai.client.operation.time_to_first_chunk"
MetricGenAiClientOperationTimeToFirstChunk is the "gen_ai.client.operation.time_to_first_chunk" metric: Time to the first chunk of a streaming GenAI response (deprecated upstream; declared as emitted). Instrument: histogram, unit: `s`.
const MetricGenAiClientOperationTimeToFirstChunkUnit = "s"
MetricGenAiClientOperationTimeToFirstChunkUnit is the unit of MetricGenAiClientOperationTimeToFirstChunk, exactly as the producer creates the instrument (empty = none).
const MetricGenAiClientTokenUsage = "gen_ai.client.token.usage"
MetricGenAiClientTokenUsage is the "gen_ai.client.token.usage" metric: Input and output tokens used by the GenAI operation (deprecated upstream; declared as emitted). Instrument: histogram, unit: `{token}`.
const MetricGenAiClientTokenUsageUnit = "{token}"
MetricGenAiClientTokenUsageUnit is the unit of MetricGenAiClientTokenUsage, exactly as the producer creates the instrument (empty = none).
const MetricGenAiExecuteToolDuration = "gen_ai.execute_tool.duration"
MetricGenAiExecuteToolDuration is the "gen_ai.execute_tool.duration" metric: The duration of a single tool execution. Instrument: histogram, unit: `s`.
const MetricGenAiExecuteToolDurationUnit = "s"
MetricGenAiExecuteToolDurationUnit is the unit of MetricGenAiExecuteToolDuration, as the upstream definition gives it (empty = none).
const MetricGenAiInvokeAgentDuration = "gen_ai.invoke_agent.duration"
MetricGenAiInvokeAgentDuration is the "gen_ai.invoke_agent.duration" metric: The end-to-end duration of a single in-process agent invocation, from the moment the invocation starts until the agent emits the last chunk of its final response or terminates with an error. Instrument: histogram, unit: `s`.
const MetricGenAiInvokeAgentDurationUnit = "s"
MetricGenAiInvokeAgentDurationUnit is the unit of MetricGenAiInvokeAgentDuration, as the upstream definition gives it (empty = none).
const MetricLkAgentsConnectionAcquireTime = "lk.agents.connection.acquire_time"
MetricLkAgentsConnectionAcquireTime is the "lk.agents.connection.acquire_time" metric: Seconds to acquire a provider connection. Instrument: histogram, unit: `s`.
const MetricLkAgentsConnectionAcquireTimeUnit = "s"
MetricLkAgentsConnectionAcquireTimeUnit is the unit of MetricLkAgentsConnectionAcquireTime, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsEventLoopBlockedDuration = "lk.agents.event_loop.blocked_duration"
MetricLkAgentsEventLoopBlockedDuration is the "lk.agents.event_loop.blocked_duration" metric: Duration of synchronous blocks detected on an agent event loop. Instrument: histogram, unit: `s`.
const MetricLkAgentsEventLoopBlockedDurationUnit = "s"
MetricLkAgentsEventLoopBlockedDurationUnit is the unit of MetricLkAgentsEventLoopBlockedDuration, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnE2eLatency = "lk.agents.turn.e2e_latency"
MetricLkAgentsTurnE2eLatency is the "lk.agents.turn.e2e_latency" metric: End-to-end latency of a turn. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnE2eLatencyUnit = "s"
MetricLkAgentsTurnE2eLatencyUnit is the unit of MetricLkAgentsTurnE2eLatency, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnEndOfTurnDelay = "lk.agents.turn.end_of_turn_delay"
MetricLkAgentsTurnEndOfTurnDelay is the "lk.agents.turn.end_of_turn_delay" metric: Delay from the end of speech to the turn decision. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnEndOfTurnDelayUnit = "s"
MetricLkAgentsTurnEndOfTurnDelayUnit is the unit of MetricLkAgentsTurnEndOfTurnDelay, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnLlmTtft = "lk.agents.turn.llm_ttft"
MetricLkAgentsTurnLlmTtft is the "lk.agents.turn.llm_ttft" metric: Time to the first LLM token. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnLlmTtftUnit = "s"
MetricLkAgentsTurnLlmTtftUnit is the unit of MetricLkAgentsTurnLlmTtft, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnOnUserTurnCompletedDelay = "lk.agents.turn.on_user_turn_completed_delay"
MetricLkAgentsTurnOnUserTurnCompletedDelay is the "lk.agents.turn.on_user_turn_completed_delay" metric: Duration of the `on_user_turn_completed` hook. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnOnUserTurnCompletedDelayUnit = "s"
MetricLkAgentsTurnOnUserTurnCompletedDelayUnit is the unit of MetricLkAgentsTurnOnUserTurnCompletedDelay, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnTranscriptionDelay = "lk.agents.turn.transcription_delay"
MetricLkAgentsTurnTranscriptionDelay is the "lk.agents.turn.transcription_delay" metric: Delay from the end of speech to the final transcript. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnTranscriptionDelayUnit = "s"
MetricLkAgentsTurnTranscriptionDelayUnit is the unit of MetricLkAgentsTurnTranscriptionDelay, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsTurnTtsTtfb = "lk.agents.turn.tts_ttfb"
MetricLkAgentsTurnTtsTtfb is the "lk.agents.turn.tts_ttfb" metric: Time to the first TTS byte. Instrument: histogram, unit: `s`.
const MetricLkAgentsTurnTtsTtfbUnit = "s"
MetricLkAgentsTurnTtsTtfbUnit is the unit of MetricLkAgentsTurnTtsTtfb, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageInterruptionNumRequests = "lk.agents.usage.interruption_num_requests"
MetricLkAgentsUsageInterruptionNumRequests is the "lk.agents.usage.interruption_num_requests" metric: Interruption-detector requests. Instrument: counter.
const MetricLkAgentsUsageInterruptionNumRequestsUnit = ""
MetricLkAgentsUsageInterruptionNumRequestsUnit is the unit of MetricLkAgentsUsageInterruptionNumRequests, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmInputAudioTokens = "lk.agents.usage.llm_input_audio_tokens"
MetricLkAgentsUsageLlmInputAudioTokens is the "lk.agents.usage.llm_input_audio_tokens" metric: Realtime-model audio input tokens. Instrument: counter.
const MetricLkAgentsUsageLlmInputAudioTokensUnit = ""
MetricLkAgentsUsageLlmInputAudioTokensUnit is the unit of MetricLkAgentsUsageLlmInputAudioTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmInputCachedTokens = "lk.agents.usage.llm_input_cached_tokens"
MetricLkAgentsUsageLlmInputCachedTokens is the "lk.agents.usage.llm_input_cached_tokens" metric: LLM cached input tokens. Instrument: counter.
const MetricLkAgentsUsageLlmInputCachedTokensUnit = ""
MetricLkAgentsUsageLlmInputCachedTokensUnit is the unit of MetricLkAgentsUsageLlmInputCachedTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmInputTextTokens = "lk.agents.usage.llm_input_text_tokens"
MetricLkAgentsUsageLlmInputTextTokens is the "lk.agents.usage.llm_input_text_tokens" metric: Realtime-model text input tokens. Instrument: counter.
const MetricLkAgentsUsageLlmInputTextTokensUnit = ""
MetricLkAgentsUsageLlmInputTextTokensUnit is the unit of MetricLkAgentsUsageLlmInputTextTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmInputTokens = "lk.agents.usage.llm_input_tokens"
MetricLkAgentsUsageLlmInputTokens is the "lk.agents.usage.llm_input_tokens" metric: LLM input tokens. Instrument: counter.
const MetricLkAgentsUsageLlmInputTokensUnit = ""
MetricLkAgentsUsageLlmInputTokensUnit is the unit of MetricLkAgentsUsageLlmInputTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmOutputAudioTokens = "lk.agents.usage.llm_output_audio_tokens"
MetricLkAgentsUsageLlmOutputAudioTokens is the "lk.agents.usage.llm_output_audio_tokens" metric: Realtime-model audio output tokens. Instrument: counter.
const MetricLkAgentsUsageLlmOutputAudioTokensUnit = ""
MetricLkAgentsUsageLlmOutputAudioTokensUnit is the unit of MetricLkAgentsUsageLlmOutputAudioTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmOutputTextTokens = "lk.agents.usage.llm_output_text_tokens"
MetricLkAgentsUsageLlmOutputTextTokens is the "lk.agents.usage.llm_output_text_tokens" metric: Realtime-model text output tokens. Instrument: counter.
const MetricLkAgentsUsageLlmOutputTextTokensUnit = ""
MetricLkAgentsUsageLlmOutputTextTokensUnit is the unit of MetricLkAgentsUsageLlmOutputTextTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmOutputTokens = "lk.agents.usage.llm_output_tokens"
MetricLkAgentsUsageLlmOutputTokens is the "lk.agents.usage.llm_output_tokens" metric: LLM output tokens. Instrument: counter.
const MetricLkAgentsUsageLlmOutputTokensUnit = ""
MetricLkAgentsUsageLlmOutputTokensUnit is the unit of MetricLkAgentsUsageLlmOutputTokens, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageLlmSessionDuration = "lk.agents.usage.llm_session_duration"
MetricLkAgentsUsageLlmSessionDuration is the "lk.agents.usage.llm_session_duration" metric: Realtime-model session seconds. Instrument: counter, unit: `s`.
const MetricLkAgentsUsageLlmSessionDurationUnit = "s"
MetricLkAgentsUsageLlmSessionDurationUnit is the unit of MetricLkAgentsUsageLlmSessionDuration, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageSttAudioDuration = "lk.agents.usage.stt_audio_duration"
MetricLkAgentsUsageSttAudioDuration is the "lk.agents.usage.stt_audio_duration" metric: Seconds of audio transcribed. Instrument: counter, unit: `s`.
const MetricLkAgentsUsageSttAudioDurationUnit = "s"
MetricLkAgentsUsageSttAudioDurationUnit is the unit of MetricLkAgentsUsageSttAudioDuration, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageTtsAudioDuration = "lk.agents.usage.tts_audio_duration"
MetricLkAgentsUsageTtsAudioDuration is the "lk.agents.usage.tts_audio_duration" metric: Seconds of audio synthesized. Instrument: counter, unit: `s`.
const MetricLkAgentsUsageTtsAudioDurationUnit = "s"
MetricLkAgentsUsageTtsAudioDurationUnit is the unit of MetricLkAgentsUsageTtsAudioDuration, exactly as the producer creates the instrument (empty = none).
const MetricLkAgentsUsageTtsCharacters = "lk.agents.usage.tts_characters"
MetricLkAgentsUsageTtsCharacters is the "lk.agents.usage.tts_characters" metric: Characters synthesized. Instrument: counter.
const MetricLkAgentsUsageTtsCharactersUnit = ""
MetricLkAgentsUsageTtsCharactersUnit is the unit of MetricLkAgentsUsageTtsCharacters, exactly as the producer creates the instrument (empty = none).
const NetworkConnectionTypeCell = "cell"
NetworkConnectionTypeCell is a value of AttrNetworkConnectionType: `cell`.
NetworkConnectionTypeUnavailable is a value of AttrNetworkConnectionType: `unavailable`.
const NetworkConnectionTypeUnknown = "unknown"
NetworkConnectionTypeUnknown is a value of AttrNetworkConnectionType: `unknown`.
const NetworkConnectionTypeWifi = "wifi"
NetworkConnectionTypeWifi is a value of AttrNetworkConnectionType: Wi-Fi
const NetworkConnectionTypeWired = "wired"
NetworkConnectionTypeWired is a value of AttrNetworkConnectionType: `wired`.
const SpanAgentSession = "agent_session"
SpanAgentSession is the "agent_session" span: The agent session, parent of every turn. Kind: internal.
const SpanAgentSpeaking = "agent_speaking"
SpanAgentSpeaking is the "agent_speaking" span: The agent's audio playing out. Kind: internal.
const SpanAgentTurn = "agent_turn"
SpanAgentTurn is the "agent_turn" span: One agent turn (generation), parent of the LLM and TTS nodes. Kind: internal.
const SpanAmd = "amd"
SpanAmd is the "amd" span: Answering-machine detection on an outbound call. Kind: internal.
const SpanDrainAgentActivity = "drain_agent_activity"
SpanDrainAgentActivity is the "drain_agent_activity" span: Draining an agent activity before it ends. Kind: internal.
const SpanEouDetection = "eou_detection"
SpanEouDetection is the "eou_detection" span: One end-of-utterance inference. Kind: internal.
const SpanEouWait = "eou_wait"
SpanEouWait is the "eou_wait" span: The endpointing wait, from the user's last speech to the turn decision. Kind: internal.
const SpanEventLoopBlocked = "event_loop_blocked"
SpanEventLoopBlocked is the "event_loop_blocked" span: A synchronous block on the agent event loop. Kind: internal.
const SpanFunctionTool = "function_tool"
SpanFunctionTool is the "function_tool" span: One function tool execution, the OTel GenAI execute-tool span. Kind: internal.
const SpanJobEntrypoint = "job_entrypoint"
SpanJobEntrypoint is the "job_entrypoint" span: The job's entrypoint, root of a job's trace. Kind: internal.
const SpanJobShutdown = "job_shutdown"
SpanJobShutdown is the "job_shutdown" span: The job shutting down. Kind: internal.
const SpanJudgeEvaluation = "judge_evaluation"
SpanJudgeEvaluation is the "judge_evaluation" span: One LLM-judge evaluation of the session. Kind: internal.
const SpanKeytermDetection = "keyterm_detection"
SpanKeytermDetection is the "keyterm_detection" span: A keyterm update to the STT. Kind: internal.
const SpanLkConnect = "lk.connect"
SpanLkConnect is the "lk.connect" span: One connect attempt. Kind: client.
const SpanLkPublish = "lk.publish"
SpanLkPublish is the "lk.publish" span: One track publish. Kind: internal.
const SpanLkReconnect = "lk.reconnect"
SpanLkReconnect is the "lk.reconnect" span: One reconnect cycle. Kind: client.
const SpanLkSubscribe = "lk.subscribe"
SpanLkSubscribe is the "lk.subscribe" span: One subscription, from the intent to subscribe to the first media. Kind: internal.
const SpanLlmFallbackAdapter = "llm_fallback_adapter"
SpanLlmFallbackAdapter is the "llm_fallback_adapter" span: The LLM fallback adapter choosing an instance. Kind: internal.
const SpanLlmNode = "llm_node"
SpanLlmNode is the "llm_node" span: The agent's LLM node for one generation. Kind: internal.
const SpanLlmRequest = "llm_request"
SpanLlmRequest is the "llm_request" span: One LLM inference request, the OTel GenAI inference span. Kind: client.
const SpanLlmRequestRun = "llm_request_run"
SpanLlmRequestRun is the "llm_request_run" span: The LLM request's stream being consumed. Kind: internal.
const SpanMetrics = "metrics"
SpanMetrics is the "metrics" span: A plugin-task metric noted through the Node binding, stamped with its resolved frame. Kind: internal.
const SpanOnEnter = "on_enter"
SpanOnEnter is the "on_enter" span: The agent's `on_enter` hook. Kind: internal.
const SpanOnExit = "on_exit"
SpanOnExit is the "on_exit" span: The agent's `on_exit` hook. Kind: internal.
const SpanOnSessionEnd = "on_session_end"
SpanOnSessionEnd is the "on_session_end" span: The session-end hook. Kind: internal.
const SpanOnUserTurnCompleted = "on_user_turn_completed"
SpanOnUserTurnCompleted is the "on_user_turn_completed" span: The `on_user_turn_completed` hook. Kind: internal.
const SpanPauseAgentActivity = "pause_agent_activity"
SpanPauseAgentActivity is the "pause_agent_activity" span: Pausing an agent activity. Kind: internal.
const SpanPublishAudioOutput = "publish_audio_output"
SpanPublishAudioOutput is the "publish_audio_output" span: Publishing the agent's audio track. Kind: internal.
const SpanRealtimeInference = "realtime_inference"
SpanRealtimeInference is the "realtime_inference" span: One realtime-model generation. Kind: client.
const SpanRealtimeMetrics = "realtime_metrics"
SpanRealtimeMetrics is the "realtime_metrics" span: Realtime-model metrics attached to a turn. Kind: internal.
const SpanResumeAgentActivity = "resume_agent_activity"
SpanResumeAgentActivity is the "resume_agent_activity" span: Resuming an agent activity. Kind: internal.
const SpanRoomConnect = "room_connect"
SpanRoomConnect is the "room_connect" span: Connecting the job to its room. Kind: client.
const SpanRoomDisconnect = "room_disconnect"
SpanRoomDisconnect is the "room_disconnect" span: Disconnecting from the room. Kind: client.
const SpanRpcCall = "rpc_call"
SpanRpcCall is the "rpc_call" span: An outgoing RPC. Kind: client.
const SpanRpcHandler = "rpc_handler"
SpanRpcHandler is the "rpc_handler" span: An incoming RPC handled by the agent. Kind: server.
const SpanSessionClose = "session_close"
SpanSessionClose is the "session_close" span: Closing the session. Kind: internal.
const SpanSessionEndUpload = "session_end_upload"
SpanSessionEndUpload is the "session_end_upload" span: Uploading the session report. Kind: internal.
const SpanSessionStart = "session_start"
SpanSessionStart is the "session_start" span: Starting the session (room I/O, first activity). Kind: internal.
const SpanSetupToolsets = "setup_toolsets"
SpanSetupToolsets is the "setup_toolsets" span: Initializing the agent's tool sets. Kind: internal.
const SpanShutdownCallback = "shutdown_callback"
SpanShutdownCallback is the "shutdown_callback" span: One shutdown callback. Kind: internal.
const SpanStartAgentActivity = "start_agent_activity"
SpanStartAgentActivity is the "start_agent_activity" span: Starting an agent activity. Kind: internal.
const SpanTtsFallbackAdapter = "tts_fallback_adapter"
SpanTtsFallbackAdapter is the "tts_fallback_adapter" span: The TTS fallback adapter choosing an instance. Kind: internal.
const SpanTtsNode = "tts_node"
SpanTtsNode is the "tts_node" span: The agent's TTS node for one generation. Kind: internal.
const SpanTtsRequest = "tts_request"
SpanTtsRequest is the "tts_request" span: One TTS request. Kind: client.
const SpanTtsRequestRun = "tts_request_run"
SpanTtsRequestRun is the "tts_request_run" span: The TTS request's stream being consumed. Kind: internal.
const SpanTtsStream = "tts_stream"
SpanTtsStream is the "tts_stream" span: The Node binding driving `Tts::stream` (the duplex path). Kind: internal.
const SpanTtsStreamAdapter = "tts_stream_adapter"
SpanTtsStreamAdapter is the "tts_stream_adapter" span: The sentence-splitting adapter over a non-streaming TTS. Kind: internal.
const SpanTtsSynthesize = "tts_synthesize"
SpanTtsSynthesize is the "tts_synthesize" span: The Node binding driving `Tts::synthesize` (the simplex path). Kind: internal.
const SpanUpdateAgent = "update_agent"
SpanUpdateAgent is the "update_agent" span: Replacing the session's agent. Kind: internal.
const SpanUserSpeaking = "user_speaking"
SpanUserSpeaking is the "user_speaking" span: The user speaking (VAD). Kind: internal.
const SpanUserTurn = "user_turn"
SpanUserTurn is the "user_turn" span: One user turn, from speech to the turn decision. Kind: internal.
const SpanWaitForAudioTrack = "wait_for_audio_track"
SpanWaitForAudioTrack is the "wait_for_audio_track" span: Waiting for the participant's audio track. Kind: internal.
const SpanWaitForParticipant = "wait_for_participant"
SpanWaitForParticipant is the "wait_for_participant" span: Waiting for the participant to link to. Kind: internal.
const SpanWaitForVideoTrack = "wait_for_video_track"
SpanWaitForVideoTrack is the "wait_for_video_track" span: Waiting for the participant's video track. Kind: internal.
const TelemetrySdkLanguageCpp = "cpp"
TelemetrySdkLanguageCpp is a value of AttrTelemetrySdkLanguage: [C++](https://opentelemetry.io/docs/languages/cpp/)
const TelemetrySdkLanguageDotnet = "dotnet"
TelemetrySdkLanguageDotnet is a value of AttrTelemetrySdkLanguage: [.NET](https://opentelemetry.io/docs/languages/dotnet/)
const TelemetrySdkLanguageErlang = "erlang"
TelemetrySdkLanguageErlang is a value of AttrTelemetrySdkLanguage: Erlang/Elixir(https://opentelemetry.io/docs/languages/erlang/)
const TelemetrySdkLanguageGo = "go"
TelemetrySdkLanguageGo is a value of AttrTelemetrySdkLanguage: [Go](https://opentelemetry.io/docs/languages/go/)
const TelemetrySdkLanguageJava = "java"
TelemetrySdkLanguageJava is a value of AttrTelemetrySdkLanguage: [Java](https://opentelemetry.io/docs/languages/java/)
const TelemetrySdkLanguageKotlin = "kotlin"
TelemetrySdkLanguageKotlin is a value of AttrTelemetrySdkLanguage: [Kotlin](https://opentelemetry.io/docs/languages/kotlin/)
const TelemetrySdkLanguageNodejs = "nodejs"
TelemetrySdkLanguageNodejs is a value of AttrTelemetrySdkLanguage: [Node.js](https://opentelemetry.io/docs/languages/js/)
const TelemetrySdkLanguagePhp = "php"
TelemetrySdkLanguagePhp is a value of AttrTelemetrySdkLanguage: [PHP](https://opentelemetry.io/docs/languages/php/)
const TelemetrySdkLanguagePython = "python"
TelemetrySdkLanguagePython is a value of AttrTelemetrySdkLanguage: [Python](https://opentelemetry.io/docs/languages/python/)
const TelemetrySdkLanguageRuby = "ruby"
TelemetrySdkLanguageRuby is a value of AttrTelemetrySdkLanguage: [Ruby](https://opentelemetry.io/docs/languages/ruby/)
const TelemetrySdkLanguageRust = "rust"
TelemetrySdkLanguageRust is a value of AttrTelemetrySdkLanguage: [Rust](https://opentelemetry.io/docs/languages/rust/)
const TelemetrySdkLanguageSwift = "swift"
TelemetrySdkLanguageSwift is a value of AttrTelemetrySdkLanguage: [Swift](https://opentelemetry.io/docs/languages/swift/)
const TelemetrySdkLanguageWebjs = "webjs"
TelemetrySdkLanguageWebjs is a value of AttrTelemetrySdkLanguage: [Browser](https://opentelemetry.io/docs/languages/js/)
Variables ¶
var KeyAliases = map[string][]string{
"lk.disconnect_reason": {
"lk.disconnect.reason",
},
"lk.participant_id": {
"lk.participant.sid",
"lk.participant_sid",
"participantID",
"participant_id",
},
"lk.pii.participant_identity": {
"lk.participant.identity",
"participantIdentity",
"participant_identity",
},
"lk.pii.remote_participant_identity": {
"lk.participant.remote_identity",
},
"lk.pii.room_name": {
"lk.room.name",
"roomName",
"room_name",
},
"lk.room_id": {
"lk.room.sid",
"lk.room_sid",
"roomID",
"room_id",
},
"lk.track_id": {
"lk.track.sid",
"lk.track_sid",
"trackID",
"track_id",
},
"lk.track_source": {
"lk.track.source",
},
}
KeyAliases maps a canonical key to its legacy spellings, the OTLP dotted rename first and then the `aliases`. AliasesFor reads it to expand a canonical key to every spelling older captures used, for querying historical ClickHouse/log data or reading mixed payloads.
var RenamedKeys = map[string]string{
"lk.disconnect.reason": "lk.disconnect_reason",
"lk.participant.sid": "lk.participant_id",
"lk.participant_sid": "lk.participant_id",
"participantID": "lk.participant_id",
"participant_id": "lk.participant_id",
"lk.participant.identity": "lk.pii.participant_identity",
"participantIdentity": "lk.pii.participant_identity",
"participant_identity": "lk.pii.participant_identity",
"lk.participant.remote_identity": "lk.pii.remote_participant_identity",
"lk.room.name": "lk.pii.room_name",
"roomName": "lk.pii.room_name",
"room_name": "lk.pii.room_name",
"lk.room.sid": "lk.room_id",
"lk.room_sid": "lk.room_id",
"roomID": "lk.room_id",
"room_id": "lk.room_id",
"lk.track.sid": "lk.track_id",
"lk.track_sid": "lk.track_id",
"trackID": "lk.track_id",
"track_id": "lk.track_id",
"lk.track.source": "lk.track_source",
}
RenamedKeys maps a legacy attribute key to the canonical key that replaces it, from the `renamed_from` annotations on the shared keys: the OTLP dotted rename and every `aliases` entry (the pre-#7973 Agents span names and the Go logger / collector spellings). A consumer (such as the collector) uses it, via NormalizeKey, to fold a legacy key read from an older capture onto the key this registry defines. The legacy keys are never registered, so they appear only here.
var RenamedValues = map[string]map[string]string{
"lk.disconnect.reason": {
"agent_error": "AGENT_ERROR",
"client_initiated": "CLIENT_INITIATED",
"connection_timeout": "CONNECTION_TIMEOUT",
"duplicate_identity": "DUPLICATE_IDENTITY",
"join_failure": "JOIN_FAILURE",
"media_failure": "MEDIA_FAILURE",
"migration": "MIGRATION",
"participant_removed": "PARTICIPANT_REMOVED",
"reconnect_failed": "RECONNECT_FAILED",
"room_closed": "ROOM_CLOSED",
"room_deleted": "ROOM_DELETED",
"server_shutdown": "SERVER_SHUTDOWN",
"signal_close": "SIGNAL_CLOSE",
"sip_trunk_failure": "SIP_TRUNK_FAILURE",
"state_mismatch": "STATE_MISMATCH",
"unknown": "UNKNOWN_REASON",
"user_rejected": "USER_REJECTED",
"user_unavailable": "USER_UNAVAILABLE",
},
"lk.track.source": {
"camera": "SOURCE_CAMERA",
"microphone": "SOURCE_MICROPHONE",
"screen_share": "SOURCE_SCREENSHARE",
"screen_share_audio": "SOURCE_SCREENSHARE_AUDIO",
"unknown": "SOURCE_UNKNOWN",
},
}
RenamedValues maps a legacy attribute key to its legacy-value -> canonical-value mapping, for the shared keys whose enum values were also renamed. A renamed key whose values did not change is absent here; look it up in RenamedKeys only.
Functions ¶
func AliasesFor ¶
AliasesFor returns the canonical key followed by its legacy spellings, for querying historical data that may carry either. A key with no recorded legacy spelling yields just itself.
func NormalizeKey ¶
NormalizeKey returns the canonical key for a legacy spelling, or key unchanged when it is not a known legacy spelling. A reader calls it on ingest to fold legacy keys onto canonical ones. During dual-emit a record may carry both: the canonical key is already canonical and returns unchanged, so prefer it over the result of normalizing the legacy key.
func NormalizeValue ¶
NormalizeValue returns the canonical value for a legacy value under a legacy key, or value unchanged. Pass the legacy key as read from the capture, not the canonical key; only the shared keys whose enum values were renamed have value mappings.
Types ¶
This section is empty.