Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

MCP spans report JSON-RPC as a network version and infer transports from class names

Open
#24,507 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with the MCP server span transport-metadata entry points in both TypeScript SDK majors and compare their request metadata handling with the linked OpenTelemetry MCP transport conventions. Done means HTTP protocol/version is recorded only when observed, unknown transport and version values are omitted, mcp.transport retains the class name, and request-local user_agent.original is exposed in both majors.

Written by the indexing model from the issue text.

Description

Improvement javascript Spans

MCP server spans currently set network.protocol.version to JSON-RPC 2.0 for every transport, including stdio, and infer network.transport from substrings in transport class names. This can report an HTTP version that was never observed and classify custom transports incorrectly.

Follow the OpenTelemetry MCP transport conventions: record the actual HTTP protocol/version when request metadata provides it, and omit unknown network versions and transports. Preserve mcp.transport as the implementation class name. Also expose the available HTTP User-Agent as request-local user_agent.original on MCP spans for both TypeScript SDK majors.

This is a focused transport-metadata correction within the broader semantic-convention alignment tracked in #21482.

Dominant language
TypeScript
Stars
8.7k
Forks
1.9k
Avg merge
1d 18h
Merged PRs (30d)
543

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-javascript

All issues in getsentry/sentry-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.