Skip to main content

OpenTelemetry mcp instrumentation

Project description

OpenTelemetry MCP Instrumentation

This library allows tracing of agentic workflows implemented with MCP framework mcp python sdk.

Installation

pip install opentelemetry-instrumentation-mcp

Example usage

from opentelemetry.instrumentation.mcp import McpInstrumentor

McpInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application tool usage is working, and can make it easy to debug and evaluate the tool usage.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentelemetry_instrumentation_mcp-0.46.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_mcp-0.46.2.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mcp-0.46.2.tar.gz
Algorithm Hash digest
SHA256 fed368b3184f93bde356ab842df7a6e5e6864a9d911ec8a99f6821dc31fa2dc7
MD5 85c936e4a4dc8b006ee0a299e364dc85
BLAKE2b-256 67f6601b86cc58724e272c20d077f8ca8d3da6bbf2515463a9b46a9343ede784

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mcp-0.46.2.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_mcp-0.46.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mcp-0.46.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae94e7b5ea65a8056ec47f2b1c713b7580dbe8693df2f0bfd5099426ed1647c
MD5 016c1a0d1ca0cb6d2298e68239a7599c
BLAKE2b-256 0bd0fc7c40fd72262e7172da5c00e14f8681f91ecb75a45b83a4c92f98f11101

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mcp-0.46.2-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page