What each instrumentation crate records, under which names, so you can find them in your backend, write dashboards and alerts against them, or check them against what another language records. Every name is defined by the OpenTelemetry semantic conventions; descriptions are theirs. Stable names don’t change. Names in development can change in a later release of the conventions, and oxtel follows them when they do.
Values that may hold personal or secret data, such as tool arguments, aren’t recorded unless asked for, and aren’t listed here.
HTTP servers and clients built on tower, axum and hyper. A server span is named by its method and route, such as GET /items/{id}; a client span by its method alone. The server also writes a request log line as each request ends.
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
http.request.method | HTTP request method. | stable |
http.response.status_code | HTTP response status code. | stable |
network.protocol.version | The actual version of the protocol used for network communication. | stable |
server.address | Server domain name if available without reverse DNS lookup; otherwise, IP address or UNIX domain socket name. | stable |
server.port | Server port number. | stable |
url.full | Absolute URL describing a network resource according to RFC3986 | stable |
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
http.request.method | HTTP request method. | stable |
http.response.status_code | HTTP response status code. | stable |
http.route | The matched route template for the request. This MUST be low-cardinality and include all static path segments, with dynamic path segments represented with placeholders. | stable |
network.protocol.version | The actual version of the protocol used for network communication. | stable |
server.address | Server domain name if available without reverse DNS lookup; otherwise, IP address or UNIX domain socket name. | stable |
server.port | Server port number. | stable |
url.path | The URI path component | stable |
url.scheme | The URI scheme component identifying the used protocol. | stable |
user_agent.original | Value of the HTTP User-Agent header sent by the client. | stable |
| Metric | Instrument | What it measures, and its labels | Stability |
|---|
http.client.request.duration | histogram, in s | Duration of HTTP client requests. Labels: error.type, http.request.method, http.response.status_code, server.address, server.port, url.scheme. | stable |
http.server.active_requests | up-down counter, in {request} | Number of active HTTP server requests. Labels: http.request.method, url.scheme. | in development |
http.server.request.duration | histogram, in s | Duration of HTTP server requests. Labels: error.type, http.request.method, http.response.status_code, http.route, network.protocol.version, url.scheme. | stable |
reqwest clients. A span is named by its method, as oxtel-tower’s client spans are, and records the same names.
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
http.request.method | HTTP request method. | stable |
http.response.status_code | HTTP response status code. | stable |
network.protocol.version | The actual version of the protocol used for network communication. | stable |
server.address | Server domain name if available without reverse DNS lookup; otherwise, IP address or UNIX domain socket name. | stable |
server.port | Server port number. | stable |
url.full | Absolute URL describing a network resource according to RFC3986 | stable |
| Metric | Instrument | What it measures, and its labels | Stability |
|---|
http.client.request.duration | histogram, in s | Duration of HTTP client requests. Labels: error.type, http.request.method, http.response.status_code, server.address, server.port, url.scheme. | stable |
SQLite through rusqlite, PostgreSQL through tokio-postgres and deadpool-postgres, and sqlx’s pools. A span is named by its statement’s summary: its operation and table, such as SELECT orders. The connection pool metrics come from deadpool-postgres and sqlx pools.
| Attribute | What it is | Stability |
|---|
db.namespace | The name of the database, fully qualified within the server address and port. | stable |
db.query.summary | Low cardinality summary of a database query. | stable |
db.query.text | The database query being executed. | stable |
db.response.returned_rows | Number of rows returned by the operation. | in development |
db.response.status_code | Database response status code. | stable |
db.system.name | The database management system (DBMS) product as identified by the client instrumentation. | stable |
error.type | Describes a class of error the operation ended with. | stable |
server.address | Server domain name if available without reverse DNS lookup; otherwise, IP address or UNIX domain socket name. | stable |
server.port | Server port number. | stable |
| Metric | Instrument | What it measures, and its labels | Stability |
|---|
db.client.connection.count | up-down counter, in {connection} | The number of connections that are currently in state described by the state attribute. Labels: db.client.connection.pool.name, db.client.connection.state. | in development |
db.client.connection.max | up-down counter, in {connection} | The maximum number of open connections allowed. Labels: db.client.connection.pool.name. | in development |
db.client.connection.pending_requests | up-down counter, in {request} | The number of current pending requests for an open connection. Labels: db.client.connection.pool.name. | in development |
db.client.connection.timeouts | counter, in {timeout} | The number of connection timeouts that have occurred trying to obtain a connection from the pool. Labels: db.client.connection.pool.name. | in development |
db.client.connection.use_time | histogram, in s | The time between borrowing a connection and returning it to the pool. Labels: db.client.connection.pool.name. | in development |
db.client.connection.wait_time | histogram, in s | The time it took to obtain an open connection from the pool. Labels: db.client.connection.pool.name. | in development |
db.client.operation.duration | histogram, in s | Duration of database client operations. Labels: db.namespace, db.query.summary, db.response.status_code, db.system.name, error.type, server.address, server.port. | stable |
MCP servers and clients built with rmcp. A span is named by its method and, for a tool or prompt, its name, such as tools/call add.
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
gen_ai.operation.name | The name of the operation being performed. | in development |
gen_ai.tool.name | Name of the tool utilized by the agent. | in development |
mcp.method.name | The name of the request or notification method. | in development |
mcp.protocol.version | The version of the Model Context Protocol used. | in development |
rpc.response.status_code | Status code of the RPC returned by the RPC server or generated by the client | in release_candidate |
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
gen_ai.operation.name | The name of the operation being performed. | in development |
gen_ai.tool.call.arguments | Parameters passed to the tool call. | in development |
gen_ai.tool.call.result | The result returned by the tool call (if any and if execution was successful). | in development |
gen_ai.tool.name | Name of the tool utilized by the agent. | in development |
jsonrpc.request.id | A string representation of the id property of the request and its corresponding response. | in development |
mcp.method.name | The name of the request or notification method. | in development |
mcp.protocol.version | The version of the Model Context Protocol used. | in development |
network.transport | OSI transport layer or inter-process communication method . | stable |
rpc.response.status_code | Status code of the RPC returned by the RPC server or generated by the client | in release_candidate |
| Metric | Instrument | What it measures, and its labels | Stability |
|---|
mcp.client.operation.duration | histogram, in s | The duration of the MCP request or notification as observed on the sender from the time it was sent until the response or ack is received. Labels: error.type, gen_ai.operation.name, gen_ai.tool.name, mcp.method.name, mcp.protocol.version, rpc.response.status_code. | in development |
mcp.server.operation.duration | histogram, in s | MCP request or notification duration as observed on the receiver from the time it was received until the result or ack is sent. Labels: error.type, gen_ai.operation.name, gen_ai.tool.name, mcp.method.name, mcp.protocol.version, network.transport, rpc.response.status_code. | in development |
mcp.server.session.duration | histogram, in s | The duration of the MCP session as observed on the MCP server. Labels: mcp.protocol.version, network.transport. | in development |
Calls to generative AI models. A span is named by its operation and the model asked for, such as chat llama3.2.
| Attribute | What it is | Stability |
|---|
error.type | Describes a class of error the operation ended with. | stable |
gen_ai.conversation.id | The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. | in development |
gen_ai.embeddings.dimension.count | The number of dimensions the resulting output embeddings should have. | in development |
gen_ai.operation.name | The name of the operation being performed. | in development |
gen_ai.provider.name | The Generative AI provider as identified by the client or server instrumentation. | in development |
gen_ai.request.choice.count | The target number of candidate completions to return. | in development |
gen_ai.request.frequency_penalty | The frequency penalty setting for the GenAI request. | in development |
gen_ai.request.max_tokens | The maximum number of tokens the model generates for a request. | in development |
gen_ai.request.model | The name of the GenAI model a request is being made to. | in development |
gen_ai.request.presence_penalty | The presence penalty setting for the GenAI request. | in development |
gen_ai.request.seed | Requests with same seed value more likely to return same result. | in development |
gen_ai.request.stream | Indicates whether the GenAI request was made in streaming mode. | in development |
gen_ai.request.temperature | The temperature setting for the GenAI request. | in development |
gen_ai.request.top_k | The top-K sampling setting for the GenAI request: restricts token generation at each step to the K most likely next tokens. | in development |
gen_ai.request.top_p | The top_p sampling setting for the GenAI request. | in development |
gen_ai.response.id | The unique identifier for the completion. | in development |
gen_ai.response.model | The name of the model that generated the response. | in development |
gen_ai.response.time_to_first_chunk | 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. | in development |
gen_ai.usage.input_tokens | The number of tokens used in the GenAI input (prompt). | in development |
gen_ai.usage.output_tokens | The number of tokens used in the GenAI response (completion). | in development |
server.address | Server domain name if available without reverse DNS lookup; otherwise, IP address or UNIX domain socket name. | stable |
server.port | Server port number. | stable |
| Metric | Instrument | What it measures, and its labels | Stability |
|---|
gen_ai.client.inference.duration | histogram, in s | GenAI client inference operation duration. Labels: error.type, gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, server.address, server.port. | in development |
gen_ai.client.inference.operation.input_tokens | histogram, in {token} | The number of input (prompt) tokens used per inference operation. Labels: error.type, gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, server.address, server.port. | in development |
gen_ai.client.inference.operation.output_tokens | histogram, in {token} | The number of output (completion) tokens used per inference operation. Labels: error.type, gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, server.address, server.port. | in development |
gen_ai.client.inference.time_per_output_chunk | histogram, in s | Time per output chunk, recorded for each chunk received after the first one, measured as the time elapsed from the end of the previous chunk to the end of the current chunk. Labels: gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, server.address, server.port. | in development |
gen_ai.client.inference.time_to_first_chunk | histogram, in s | Time to receive the first chunk, measured from when the client issues the generation request to when the first chunk is received in the response stream. Labels: gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, server.address, server.port. | in development |
gen_ai.client.inference.usage.input_tokens | counter, in {token} | The number of input (prompt) tokens used, including cached tokens. Labels: gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, gen_ai.token.modality, server.address, server.port. | in development |
gen_ai.client.inference.usage.output_tokens | counter, in {token} | The number of output (completion) tokens used, including reasoning tokens. Labels: gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, gen_ai.token.modality, server.address, server.port. | in development |
gen_ai.client.operation.duration | histogram, in s | GenAI operation duration. Labels: gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model. | in development |
Each crate’s tests run its instrumentation, check that every name it records is one the conventions define, with the conventions’ instrument and unit, and keep the names in a file that the test fails on when they change. This page is generated from those files, and CI checks that it’s up to date, so it can’t list a name the code doesn’t record, or miss one it does.
oxtel-tokio’s metrics aren’t in the conventions, which define none for tokio; its documentation lists them.