Constant MCP_CLIENT_OPERATION_DURATION
pub const MCP_CLIENT_OPERATION_DURATION: &'static str;👎Deprecated:
{note: Moved to the OpenTelemetry GenAI semantic conventions repository. , reason: uncategorized}
Available on crate features
opentelemetry and semconv_experimental only.Expand description
§Description
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
§Metadata
| Instrument: | histogram |
| Unit: | s |
| Status: | Development |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::ERROR_TYPE | Conditionally_required: If and only if the operation fails. |
crate::attribute::GEN_AI_OPERATION_NAME | {"recommended": "should be set to execute_tool when the operation describes a tool call and should not be set otherwise.\n"} |
crate::attribute::GEN_AI_PROMPT_NAME | Conditionally_required: When operation is related to a specific prompt. |
crate::attribute::GEN_AI_TOOL_NAME | Conditionally_required: When operation is related to a specific tool. |
crate::attribute::JSONRPC_PROTOCOL_VERSION | {"recommended": "when it's not 2.0."} |
crate::attribute::MCP_METHOD_NAME | Required |
crate::attribute::MCP_PROTOCOL_VERSION | Recommended |
crate::attribute::MCP_RESOURCE_URI | Opt_in |
crate::attribute::NETWORK_PROTOCOL_NAME | {"recommended": "when applicable."} |
crate::attribute::NETWORK_PROTOCOL_VERSION | {"recommended": "when applicable."} |
crate::attribute::NETWORK_TRANSPORT | Recommended |
crate::attribute::RPC_RESPONSE_STATUS_CODE | Conditionally_required: If response contains an error code. |
crate::attribute::SERVER_ADDRESS | {"recommended": "if applicable"} |
crate::attribute::SERVER_PORT | {"recommended": "when server.address is set"} |