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.47.3.tar.gz (8.8 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.47.3.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mcp-0.47.3.tar.gz
Algorithm Hash digest
SHA256 62bcad30d5bcac8dbd17b6b20187d3ca9822f28909e8d214bc1591d20294577d
MD5 0d883caad8c2d31a936fcab744e1c7aa
BLAKE2b-256 a87561f0d4b058ef4185d69a0d83424b6dc4af459f9417b64aa94345b6590f21

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mcp-0.47.3.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.47.3-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mcp-0.47.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9fdc1cb9b0df248de1065fd716597ebb8f044ed0c8cd3cffde2a41131c374f86
MD5 0c813e4efb01a866c70a7860631bc07e
BLAKE2b-256 1f26a5b34ec94ae27847a6a33bff6aad8962a91ff807b6838b60384687ea2d09

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mcp-0.47.3-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