A session inDocumentation Index
Fetch the complete documentation index at: https://sedataai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
@sedata-ai/mcp is a single instrumented process. It begins
when instrumentServer is called and ends when telemetry.shutdown() runs.
Session id
TelemetryManager mints one UUID per process and adds it to every span and
every metric as mcp.session.id.
- every span produced by tool calls
- every metric data point
- every custom span you record via
telemetry.startActiveSpan
Session start
Implicit. Created when you construct theTelemetryManager:
Session duration
When you calltelemetry.shutdown(), the package records a histogram:
| Metric | Unit | Tag |
|---|---|---|
mcp.server.session.duration | seconds | mcp.session.id |
What “session” doesn’t mean
- It’s not a per-client session. If two MCP clients connect to the same
server process, they share one
mcp.session.id. Usemcp.request.idfor per-call correlation, andclient.addressto differentiate. - It’s not a transport-level connection. A stdio server has one logical client; an HTTP server may have many.
Per-call ids
For correlating logs to a single tool call:| Attribute | Where it comes from |
|---|---|
mcp.request.id | UUID generated for each tools/call invocation. |
mcp.session.id | UUID per process. |
mcp.tool.name | Tool that was called. |
(mcp.session.id, mcp.request.id) for unique-per-call identity.