About Go SDK Otel
Go SDK Otel is an MCP server in the Analytics category: openTelemetry instrumentation for modelcontextprotocol/go-sdk.
The repository has 1 stars and 0 forks.
Install
git clone https://github.com/curioswitch/mcp-go-sdk-otelThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Go SDK Otel
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
OpenTelemetry instrumentation for modelcontextprotocol/go-sdk
This library provides middleware to provide observability of MCP servers and clients using OpenTelemetry. Currently only trace propagation is implemented, full traces between when making tool calls that themselves generate traces such as for Gen AI SDKs.
Installation
Add github.com/curioswitch/mcp-go-sdk-otel to your go.mod.
go get github.com/curioswitch/mcp-go-sdk-otel@latest
Usage
Add middleware to clients and servers to enable instrumentation. While typical usage requires adding sending middleware to clients and receiving middleware to servers, it is possible to have invocations in the other direction and can make sense to add both.
server := mcp.NewServer(&mcp.Implementation{Name: "server", Version: "v0.0.1"}, nil)
server.AddReceivingMiddleware(mcpotel.ReceivingMiddleware())
server.AddSendingMiddleware(mcpotel.SendingMiddleware())
client := mcp.NewClient(&mcp.Implementation{Name: "client", Version: "v0.0.1"}, nil)
client.AddSendingMiddleware(mcpotel.SendingMiddleware())
server.AddReceivingMiddleware(mcpotel.ReceivingMiddleware())
See the package docs for more information.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.