OpenTelemetryAttributes
constOpenTelemetryAttributes:object
Defined in: packages/middleware/src/opentelemetry.ts:171
OpenTelemetry span attribute names.
Type Declaration
Section titled “Type Declaration”BACKEND
Section titled “BACKEND”
readonlyBACKEND:"ai.backend"='ai.backend'
DURATION_MS
Section titled “DURATION_MS”
readonlyDURATION_MS:"ai.duration.ms"='ai.duration.ms'
FRONTEND
Section titled “FRONTEND”
readonlyFRONTEND:"ai.frontend"='ai.frontend'
REQUEST_ID
Section titled “REQUEST_ID”
readonlyREQUEST_ID:"ai.request.id"='ai.request.id'
REQUEST_MAX_TOKENS
Section titled “REQUEST_MAX_TOKENS”
readonlyREQUEST_MAX_TOKENS:"ai.request.max_tokens"='ai.request.max_tokens'
REQUEST_MESSAGE_COUNT
Section titled “REQUEST_MESSAGE_COUNT”
readonlyREQUEST_MESSAGE_COUNT:"ai.request.message_count"='ai.request.message_count'
REQUEST_MODEL
Section titled “REQUEST_MODEL”
readonlyREQUEST_MODEL:"ai.request.model"='ai.request.model'
REQUEST_STREAM
Section titled “REQUEST_STREAM”
readonlyREQUEST_STREAM:"ai.request.stream"='ai.request.stream'
RESPONSE_BACKEND
Section titled “RESPONSE_BACKEND”
readonlyRESPONSE_BACKEND:"ai.response.backend"='ai.response.backend'
RESPONSE_FINISH_REASON
Section titled “RESPONSE_FINISH_REASON”
readonlyRESPONSE_FINISH_REASON:"ai.response.finish_reason"='ai.response.finish_reason'
RESPONSE_MODEL
Section titled “RESPONSE_MODEL”
readonlyRESPONSE_MODEL:"ai.response.model"='ai.response.model'
TOKENS_COMPLETION
Section titled “TOKENS_COMPLETION”
readonlyTOKENS_COMPLETION:"ai.tokens.completion"='ai.tokens.completion'
TOKENS_PROMPT
Section titled “TOKENS_PROMPT”
readonlyTOKENS_PROMPT:"ai.tokens.prompt"='ai.tokens.prompt'
TOKENS_TOTAL
Section titled “TOKENS_TOTAL”
readonlyTOKENS_TOTAL:"ai.tokens.total"='ai.tokens.total'