Skip to main content

MCP_SERVER_SESSION_DURATION

Constant MCP_SERVER_SESSION_DURATION 

pub const MCP_SERVER_SESSION_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 session as observed on the MCP server

§Metadata

Instrument:histogram
Unit:s
Status:Development

§Attributes

NameRequirement
crate::attribute::ERROR_TYPEConditionally_required: If and only if session ends with an error.
crate::attribute::JSONRPC_PROTOCOL_VERSION{"recommended": "when it's not 2.0."}
crate::attribute::MCP_PROTOCOL_VERSIONRecommended
crate::attribute::NETWORK_PROTOCOL_NAME{"recommended": "when applicable."}
crate::attribute::NETWORK_PROTOCOL_VERSION{"recommended": "when applicable."}
crate::attribute::NETWORK_TRANSPORTRecommended