MetricNames
constMetricNames:object
Defined in: packages/middleware/src/telemetry.ts:64
Metric names.
Type Declaration
Section titled “Type Declaration”REQUEST_COUNT
Section titled “REQUEST_COUNT”
readonlyREQUEST_COUNT:"ai.adapter.request.count"='ai.adapter.request.count'
REQUEST_DURATION
Section titled “REQUEST_DURATION”
readonlyREQUEST_DURATION:"ai.adapter.request.duration"='ai.adapter.request.duration'
REQUEST_ERROR
Section titled “REQUEST_ERROR”
readonlyREQUEST_ERROR:"ai.adapter.request.error"='ai.adapter.request.error'
TOKEN_COMPLETION
Section titled “TOKEN_COMPLETION”
readonlyTOKEN_COMPLETION:"ai.adapter.tokens.completion"='ai.adapter.tokens.completion'
TOKEN_PROMPT
Section titled “TOKEN_PROMPT”
readonlyTOKEN_PROMPT:"ai.adapter.tokens.prompt"='ai.adapter.tokens.prompt'
TOKEN_TOTAL
Section titled “TOKEN_TOTAL”
readonlyTOKEN_TOTAL:"ai.adapter.tokens.total"='ai.adapter.tokens.total'