spans changedapi/opentelemetry/spans
Nearest release: v2.1.322, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+25added
Lines−17removed
From line
68
where the diff opens
First seen
14 Oct 2026
this site's first read of the page
Recorded edits14to this page, all time
### Request span attributes
The whole hunk
from line 68, old and new numbered
/
from line 68
6868
6969### Common attributes
7070
71Every span for a request has the following attributes, except where a description says otherwise. Other spans can have only the first three:
71Any span can have the following attributes:
7272
73| Attribute | Type | Description |
74| --------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
75| `gen_ai.provider.name` | `string` | `anthropic`. On every span.<br />**SDK:** `aws.bedrock` on the Amazon Bedrock clients (Mantle included), and `gcp.vertex_ai` on the client for Google Cloud’s Agent Platform. |
76| `anthropic.organization.id` | `string` | The organization ID. |
77| `anthropic.workspace.id` | `string` | The ID of the workspace that the work runs in. |
78| `anthropic.request.id` | `string` | The value of the `request-id` response header. |
79| `http.request.method` | `string` | The request’s HTTP method, for example `POST`. |
80| `http.route` | `string` | The endpoint’s path, with placeholders for its path parameters, for example `/v1/sessions/{session_id}`. |
81| `http.response.status_code` | `int` | The final response’s HTTP status code. For a stream, the status code sent with the headers. Absent when there was no response. |
82| `server.address` | `string` | The host that the request was sent to, for example `api.anthropic.com`. |
83| `server.port` | `int` | The request URL’s port, or the default port of its scheme when the URL doesn’t have one. |
84| `url.scheme` | `string` | The URL’s scheme, for example `https`. |
85| `url.path` | `string` | The URL’s path, for example `/v1/messages`. |
86| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. |
87| `url.full` | `string` | The request’s URL. |
73| Attribute | Type | Description |
74| --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
75| `gen_ai.provider.name` | `string` | The platform that serves the request: `aws.bedrock` on Amazon Bedrock (Mantle included), `gcp.vertex_ai` on Google Cloud’s Agent Platform, and `anthropic` everywhere else. On every span. |
76| `anthropic.organization.id` | `string` | The organization ID. |
77| `anthropic.workspace.id` | `string` | The ID of the workspace that the work runs in. |
78| `user.id` | `string` | Your end user’s ID, if you set it in the W3C [`baggage`](https://www.w3.org/TR/baggage/) header (for example, `baggage: user.id=4f2a`). It appears on the request’s API span and on every API span under it, such as the session turns that the request starts.<br />Use an opaque ID, such as your database’s key for the user.<br />**Do not put an email address in this value.** To protect user privacy, the API drops any `user.id` that contains one. |
79
80### Request span attributes
81
82Every span for a request also has the following attributes, except where a description says otherwise:
83
84| Attribute | Type | Description |
85| --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
86| `anthropic.request.id` | `string` | The value of the `request-id` response header. |
87| `http.request.method` | `string` | The request’s HTTP method, for example `POST`. |
88| `http.route` | `string` | The endpoint’s path, with placeholders for its path parameters, for example `/v1/sessions/{session_id}`. |
89| `http.response.status_code` | `int` | The final response’s HTTP status code. For a stream, the status code sent with the headers. Absent when there was no response. |
90| `server.address` | `string` | The host that the request was sent to, for example `api.anthropic.com`. |
91| `server.port` | `int` | The request URL’s port, or the default port of its scheme when the URL doesn’t have one. |
92| `url.scheme` | `string` | The URL’s scheme, for example `https`. |
93| `url.path` | `string` | The URL’s path, for example `/v1/messages`. |
94| `url.query` | `string` | The URL’s query string, with only the query parameters that the endpoint defines. Absent when there are none. |
95| `url.full` | `string` | The request’s URL. |
8896
8997API spans for requests sent through a cloud platform, such as Claude Platform on AWS, don’t have `server.address`, `server.port`, or `url.full`.
9098
No line in this hunk matches that.