🐛 Bug Report: MCP Span Missing for stdio Transport Mode
Which component is this bug for?
Traceloop SDK
📜 Description
As per MCP instrumentation these spans are expected mcp.method.name mcp.request.argument mcp.request.id mcp.response.value mcp.session.init_options But when running MCP server in stdio mode only RequestStreamWriter span is coming no ResponseStreamWriter span is present (mcp.response.value) span is missing and also mcp.session.init_options span is mising hence we are not getting the tool response details .
👟 Reproduction steps
- Initialize MCP server with traceloop
- Run mcp server in stdio mode
- check in traceloop the particular span(ResponseStreamWriter -> mcp.response.value), mcp.session.init_options is missing
👍 Expected behavior
mcp.response.value ,mcp.session.init_options span should be present for stdio mode .
👎 Actual Behavior with Screenshots
Here in the picture root span is also missing
🤖 Python Version
3.13
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
- [x] I checked and didn't find similar issue
Are you willing to submit PR?
None
Thanks @elinacse! Do you mind sharing a minimal reproducible example?
@nirga Here is the sample mcp server which I tested with Claude Desktop
Here is the picture for the sample the route spna is missing and we only see RequestStreamWriter No ResponseStreamWriter is there .
CC: @gyliu513
@fali007 ^^
https://github.com/traceloop/openllmetry/pull/3383