Skip to content

Commit c840084

Browse files
lmolkovaaabmass
andauthored
MCP semantic conventions (#2083)
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
1 parent 35a4b64 commit c840084

20 files changed

Lines changed: 1613 additions & 9 deletions

File tree

.chloggen/2083.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
change_type: enhancement
2+
component: mcp
3+
note: Add MCP semantic conventions
4+
issues: [2043, 2083]

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
/docs/gen-ai/ @open-telemetry/specs-semconv-approvers @open-telemetry/semconv-genai-approvers
106106
/model/gen-ai/ @open-telemetry/specs-semconv-approvers @open-telemetry/semconv-genai-approvers
107107
/model/openai/ @open-telemetry/specs-semconv-approvers @open-telemetry/semconv-genai-approvers
108+
/model/mcp/ @open-telemetry/specs-semconv-approvers @open-telemetry/semconv-genai-approvers
108109

109110
# Security semantic conventions
110111
/docs/dns/ @open-telemetry/specs-semconv-approvers @open-telemetry/semconv-security-approvers

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ body:
6868
- area:k8s
6969
- area:log
7070
- area:mainframe
71+
- area:mcp
7172
- area:messaging
7273
- area:network
7374
- area:nfs

.github/ISSUE_TEMPLATE/change_proposal.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ body:
6060
- area:k8s
6161
- area:log
6262
- area:mainframe
63+
- area:mcp
6364
- area:messaging
6465
- area:network
6566
- area:nfs

.github/ISSUE_TEMPLATE/new-conventions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ body:
7171
- area:k8s
7272
- area:log
7373
- area:mainframe
74+
- area:mcp
7475
- area:messaging
7576
- area:network
7677
- area:nfs

AREAS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ their owners, related project (and project board) as well as its current status.
2828
|------|--------|---------|-------|-------|--------|-------|
2929
| Semantic Conventions: System | [semconv-system-approvers](https://github.com/orgs/open-telemetry/teams/semconv-system-approvers) | https://github.com/open-telemetry/community/blob/main/projects/system-semconv.md | https://github.com/orgs/open-telemetry/projects/55 | `area:system`, `area:host`, `area:process`, `area:nfs`, `area:os`, `area:cpu`, `area:disk`, `area:network`, `area:linux` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
3030
| Semantic Conventions: K8s | [semconv-k8s-approvers](https://github.com/orgs/open-telemetry/teams/semconv-k8s-approvers) | https://github.com/open-telemetry/community/blob/main/projects/k8s-semconv.md | https://github.com/orgs/open-telemetry/projects/114 | `area:k8s`, `area:container`, `area:oci` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
31-
| Semantic Conventions: GenAI | [semconv-genai-approvers](https://github.com/orgs/open-telemetry/teams/semconv-genai-approvers) | https://github.com/open-telemetry/community/blob/main/projects/gen-ai.md | https://github.com/orgs/open-telemetry/projects/82 | `area:gen-ai`, `area:openai` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
31+
| Semantic Conventions: GenAI | [semconv-genai-approvers](https://github.com/orgs/open-telemetry/teams/semconv-genai-approvers) | https://github.com/open-telemetry/community/blob/main/projects/gen-ai.md | https://github.com/orgs/open-telemetry/projects/82 | `area:gen-ai`, `area:openai`, `area:mcp` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
3232
| Semantic Conventions: CI/CD | [semconv-cicd-approvers](https://github.com/orgs/open-telemetry/teams/semconv-cicd-approvers) | https://github.com/open-telemetry/community/blob/main/projects/ci-cd-phase-2.md | https://github.com/orgs/open-telemetry/projects/79 | `area:cicd`, `area:artifact`, `area:deployment`, `area:test`, `area:vcs` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
3333
| Semantic Conventions: Security | [semconv-security-approvers](https://github.com/orgs/open-telemetry/teams/semconv-security-approvers) | https://github.com/open-telemetry/community/blob/main/projects/security-semconv.md | https://github.com/orgs/open-telemetry/projects/104 | `area:security`, `area:log`, `area:user`, `area:dns`, `area:file`, `area:tls`, `area:network`, `area:process` | `accepting_contributions`, `active` | The SIG is looking for contributions! |
3434
| Semantic Conventions: Browser Instrumentation | [semconv-browser-approvers](https://github.com/orgs/open-telemetry/teams/semconv-browser-approvers) | https://github.com/open-telemetry/community/blob/main/projects/browser-phase-1.md | https://github.com/orgs/open-telemetry/projects/146 | `area:browser` | `accepting_contributions`, `active` | The SIG is looking for contributions! |

areas.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ areas:
4242
labels:
4343
- area:gen-ai
4444
- area:openai
45+
- area:mcp
4546
status:
4647
- accepting_contributions
4748
- active

docs/gen-ai/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ Technology specific semantic conventions are defined for the following GenAI sys
4040
* [OpenAI](./openai.md): Semantic Conventions for OpenAI.
4141
* [AWS Bedrock](./aws-bedrock.md): Semantic Conventions for AWS Bedrock.
4242

43+
See also:
44+
45+
* [Model Context Protocol](./mcp.md): Semantic Conventions for [MCP](https://modelcontextprotocol.io)
46+
4347
[DocumentStatus]: https://opentelemetry.io/docs/specs/otel/document-status

docs/gen-ai/gen-ai-spans.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,15 @@ Describes tool execution span.
364364

365365
**Span name** SHOULD be `execute_tool {gen_ai.tool.name}`.
366366

367-
GenAI instrumentations that are able to instrument tool execution call SHOULD do so.
368-
However, it's common for tools to be executed by the application code. It's recommended
369-
for the application developers to follow this semantic convention for tools invoked
370-
by the application code.
367+
GenAI instrumentations that can instrument tool execution calls SHOULD do so,
368+
unless another instrumentation can reliably cover all supported tool types.
369+
MCP tool executions may also be traced by the
370+
[corresponding MCP instrumentation](/docs/gen-ai/mcp.md#client).
371+
372+
Tools are often executed directly by application code. Application developers
373+
are encouraged to follow this semantic convention for tools invoked by their
374+
own code and to manually instrument any tool calls that automatic
375+
instrumentations do not cover.
371376

372377
**Span kind** SHOULD be `INTERNAL`.
373378

0 commit comments

Comments
 (0)