Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sedata-ai.tech/llms.txt

Use this file to discover all available pages before exploring further.

Every span produced by the auto-instrumentation includes a set of attributes out of the box. Some are unconditional, others appear under specific configurations.

Always present

AttributeTypeDescription
mcp.method.namestringAlways "tools/call" for tool invocations.
mcp.tool.namestringThe tool name passed to registerTool.
mcp.tool.titlestringTool title from the tool config (may be undefined if not set).
mcp.tool.descriptionstringTool description from the tool config.
mcp.request.idstringUUID generated per request. Unique per call.
mcp.session.idstringUUID generated when the SDK starts. Constant for the process.
mcp.operation.successbooleantrue on OK, false on thrown error.
mcp.operation.durationnumberDuration in ms.
client.addressstringFirst non-internal IPv4 address of the host. Falls back to "localhost".

Conditional

When enableArgumentCollection: true

Each tool argument is flattened into a mcp.request.argument.<key> attribute. Nested objects use dot notation.
mcp.request.argument.weightKg = 70
mcp.request.argument.heightM = 1.75
mcp.request.argument.metadata.locale = 'en-US'
Off by default — these often contain user input or PII.

When the handler is wrapped with safetyCheck

AttributeTypeDescription
mcp.safety_check.contentstringOriginal content passed to the safety API.
mcp.safety_check.flaggedbooleantrue if Sedata’s API flagged the input.
mcp.safety_check.latency_msnumberRound-trip latency of the safety check.
mcp.safety_check.successbooleantrue if the safety API responded OK (regardless of verdict).

When process.env.PORT is set

AttributeTypeDescription
client.portstringValue of process.env.PORT.

On error

AttributeTypeDescription
error.typestringError class name (e.g. "TypeError").
error.messagestringError message.

Resource attributes

Attached once per process and merged into every export:
AttributeSource
service.nameconfig.serverName
service.versionconfig.serverVersion
mcp.session.idUUID per process
Host / OS / env detector attrs@opentelemetry/resources detectors

Filtering reference for dashboards

Common filter patterns:
service.name = "weather-mcp"
mcp.tool.name = "calculate-bmi"
mcp.operation.success = false
mcp.safety_check.flagged = true

See also

Tracing concept

How attributes get attached to spans.

Data processors

Mutate or remove attributes before export.