Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
390e783
fix: Replace Windows-illegal file names
loewenheim Aug 14, 2025
9fdd6fc
Formatting
loewenheim Aug 14, 2025
cb351ab
Formatting
loewenheim Aug 14, 2025
f9399d2
Run generate
loewenheim Aug 14, 2025
c18bd5b
test that all aliases have a corresponding file
lcian Aug 28, 2025
169ac1e
lint
lcian Aug 28, 2025
457bc30
show missing files
lcian Aug 28, 2025
b2feabb
test for replacements too
lcian Aug 28, 2025
34672f8
remove missing nextjs attributes
lcian Aug 28, 2025
69d1db8
test: ensure all aliases are symmetric
lcian Aug 28, 2025
d0750ab
lint
lcian Aug 28, 2025
1975e47
Update attributes.test.ts
lcian Aug 28, 2025
372e3f9
test: ensure there's a single non-deprecated attribute per alias group
lcian Aug 28, 2025
55cd5a5
Merge branch 'main' into lcian/all-materialized
lcian Aug 28, 2025
63b4e26
remove headers\['body-size'\]
lcian Aug 29, 2025
9668371
regenerate
lcian Aug 29, 2025
e488a75
lint fix
lcian Aug 29, 2025
603e689
remove http.response.header\['content-length'\]
lcian Aug 29, 2025
cc8849f
regenerate
lcian Aug 29, 2025
c9f93f0
Merge branch 'lcian/all-materialized' into lcian/alias-symmetric
lcian Aug 29, 2025
180c33c
solve all asymmetries
lcian Aug 29, 2025
89c3e5e
Merge branch 'lcian/alias-symmetric' into lcian/alias-deprecated-cano…
lcian Aug 29, 2025
bfedff8
unalias http.route and url.template, deprecate params.key
lcian Aug 29, 2025
6d30414
alias route <> http_route
lcian Aug 29, 2025
3ef5078
address remaining items
lcian Aug 29, 2025
cd05abf
generate and lint
lcian Aug 29, 2025
0a71da2
Merge branch 'main' into lcian/alias-symmetric
lcian Sep 2, 2025
6d65587
Merge branch 'main' into lcian/alias-symmetric
lcian Sep 3, 2025
fe49d6b
remove url
lcian Sep 3, 2025
c327037
improve
lcian Sep 3, 2025
cc3d1c2
improve
lcian Sep 3, 2025
f5ebe72
add test for self-deprecation and self-aliasing
lcian Sep 3, 2025
03ac960
Merge branch 'lcian/alias-symmetric' into lcian/alias-deprecated-cano…
lcian Sep 3, 2025
487da47
readd url
lcian Sep 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions generated/attributes/ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ The reason why the model stopped generating.
| Exists in OpenTelemetry | No |
| Example | `COMPLETE` |
| Deprecated | Yes, use `gen_ai.response.finish_reason` instead |
| Aliases | `gen_ai.response.finish_reasons` |

### ai.frequency_penalty

Expand All @@ -223,6 +224,7 @@ Used to reduce repetitiveness of generated tokens. The higher the value, the str
| Exists in OpenTelemetry | No |
| Example | `0.5` |
| Deprecated | Yes, use `gen_ai.request.frequency_penalty` instead |
| Aliases | `gen_ai.request.frequency_penalty` |

### ai.function_call

Expand All @@ -235,6 +237,7 @@ For an AI model call, the function that was called. This is deprecated for OpenA
| Exists in OpenTelemetry | No |
| Example | `function_name` |
| Deprecated | Yes, use `gen_ai.tool.name` instead |
| Aliases | `gen_ai.tool.name` |

### ai.generation_id

Expand All @@ -247,6 +250,7 @@ Unique identifier for the completion.
| Exists in OpenTelemetry | No |
| Example | `gen_123abc` |
| Deprecated | Yes, use `gen_ai.response.id` instead |
| Aliases | `gen_ai.response.id` |

### ai.input_messages

Expand Down Expand Up @@ -285,6 +289,7 @@ The provider of the model.
| Exists in OpenTelemetry | No |
| Example | `openai` |
| Deprecated | Yes, use `gen_ai.system` instead |
| Aliases | `gen_ai.system` |

### ai.pipeline.name

Expand All @@ -297,6 +302,7 @@ The name of the AI pipeline.
| Exists in OpenTelemetry | No |
| Example | `Autofix Pipeline` |
| Deprecated | Yes, use `gen_ai.pipeline.name` instead |
| Aliases | `gen_ai.pipeline.name` |

### ai.presence_penalty

Expand All @@ -309,6 +315,7 @@ Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty,
| Exists in OpenTelemetry | No |
| Example | `0.5` |
| Deprecated | Yes, use `gen_ai.request.presence_penalty` instead |
| Aliases | `gen_ai.request.presence_penalty` |

### ai.prompt_tokens.used

Expand Down Expand Up @@ -346,6 +353,7 @@ The seed, ideally models given the same seed and same other parameters will prod
| Exists in OpenTelemetry | No |
| Example | `1234567890` |
| Deprecated | Yes, use `gen_ai.request.seed` instead |
| Aliases | `gen_ai.request.seed` |

### ai.streaming

Expand All @@ -358,6 +366,7 @@ Whether the request was streamed back.
| Exists in OpenTelemetry | No |
| Example | `true` |
| Deprecated | Yes, use `gen_ai.response.streaming` instead |
| Aliases | `gen_ai.response.streaming` |

### ai.temperature

Expand All @@ -370,6 +379,7 @@ For an AI model call, the temperature parameter. Temperature essentially means h
| Exists in OpenTelemetry | No |
| Example | `0.1` |
| Deprecated | Yes, use `gen_ai.request.temperature` instead |
| Aliases | `gen_ai.request.temperature` |

### ai.tool_calls

Expand Down Expand Up @@ -406,6 +416,7 @@ Limits the model to only consider the K most likely next tokens, where K is an i
| Exists in OpenTelemetry | No |
| Example | `35` |
| Deprecated | Yes, use `gen_ai.request.top_k` instead |
| Aliases | `gen_ai.request.top_k` |

### ai.top_p

Expand All @@ -418,6 +429,7 @@ Limits the model to only consider tokens whose cumulative probability mass adds
| Exists in OpenTelemetry | No |
| Example | `0.7` |
| Deprecated | Yes, use `gen_ai.request.top_p` instead |
| Aliases | `gen_ai.request.top_p` |

### ai.total_tokens.used

Expand All @@ -430,4 +442,5 @@ The total number of tokens used to process the prompt.
| Exists in OpenTelemetry | No |
| Example | `30` |
| Deprecated | Yes, use `gen_ai.usage.total_tokens` instead |
| Aliases | `gen_ai.usage.total_tokens` |

2 changes: 1 addition & 1 deletion generated/attributes/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The line number in code.filepath best representing the operation. It SHOULD poin
| Exists in OpenTelemetry | Yes |
| Example | `42` |
| Deprecated | Yes, use `code.line.number` instead |
| Aliases | `code.lineno` |
| Aliases | `code.line.number` |

### code.namespace

Expand Down
28 changes: 16 additions & 12 deletions generated/attributes/gen_ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
- [gen_ai.operation.name](#gen_aioperationname)
- [gen_ai.operation.type](#gen_aioperationtype)
- [gen_ai.pipeline.name](#gen_aipipelinename)
- [gen_ai.prompt](#gen_aiprompt)
- [gen_ai.request.available_tools](#gen_airequestavailable_tools)
- [gen_ai.request.frequency_penalty](#gen_airequestfrequency_penalty)
- [gen_ai.request.max_tokens](#gen_airequestmax_tokens)
Expand Down Expand Up @@ -47,6 +46,7 @@
- [gen_ai.usage.total_tokens](#gen_aiusagetotal_tokens)
- [gen_ai.user.message](#gen_aiusermessage)
- [Deprecated Attributes](#deprecated-attributes)
- [gen_ai.prompt](#gen_aiprompt)
- [gen_ai.usage.completion_tokens](#gen_aiusagecompletion_tokens)
- [gen_ai.usage.prompt_tokens](#gen_aiusageprompt_tokens)

Expand Down Expand Up @@ -163,17 +163,6 @@ Name of the AI pipeline or chain being executed.
| Example | `Autofix Pipeline` |
| Aliases | `ai.pipeline.name` |

### gen_ai.prompt

The input messages sent to the model

| Property | Value |
| --- | --- |
| Type | `string` |
| Has PII | maybe |
| Exists in OpenTelemetry | Yes |
| Example | `[{"role": "user", "message": "hello"}]` |

### gen_ai.request.available_tools

The available tools for the model. It has to be a stringified version of an array of objects.
Expand Down Expand Up @@ -218,6 +207,7 @@ The messages passed to the model. It has to be a stringified version of an array
| Has PII | maybe |
| Exists in OpenTelemetry | No |
| Example | `[{"role": "system", "content": "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}]` |
| Aliases | `ai.input_messages`, `gen_ai.prompt` |

### gen_ai.request.model

Expand Down Expand Up @@ -545,6 +535,20 @@ The user message passed to the model.

These attributes are deprecated and will be removed in a future version. Please use the recommended replacements.

### gen_ai.prompt

The input messages sent to the model

| Property | Value |
| --- | --- |
| Type | `string` |
| Has PII | maybe |
| Exists in OpenTelemetry | Yes |
| Example | `[{"role": "user", "message": "hello"}]` |
| Deprecated | Yes, use `gen_ai.request.messages` instead |
| Deprecation Reason | Deprecated, use gen_ai.request.messages with the new format instead. |
| Aliases | `ai.input_messages`, `gen_ai.request.messages` |

### gen_ai.usage.completion_tokens

The number of tokens used in the GenAI response (completion).
Expand Down
2 changes: 1 addition & 1 deletion generated/attributes/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The sentry release.
| Exists in OpenTelemetry | No |
| Example | `production` |
| Deprecated | Yes, use `sentry.release` instead |
| Aliases | `sentry.release` |
| Aliases | `sentry.release`, `service.version` |

### replay_id

Expand Down
37 changes: 19 additions & 18 deletions generated/attributes/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
- [http.request.secure_connection_start](#httprequestsecure_connection_start)
- [http.response.body.size](#httpresponsebodysize)
- [http.response.header.\<key\>](#httpresponseheaderkey)
- [http.response.header.content-length](#httpresponseheadercontentlength)
- [http.response.size](#httpresponsesize)
- [http.response.status_code](#httpresponsestatus_code)
- [http.route](#httproute)
Expand All @@ -32,6 +31,7 @@
- [http.method](#httpmethod)
- [http.response_content_length](#httpresponse_content_length)
- [http.response_transfer_size](#httpresponse_transfer_size)
- [http.response.header.content-length](#httpresponseheadercontentlength)
- [http.scheme](#httpscheme)
- [http.server_name](#httpserver_name)
- [http.status_code](#httpstatus_code)
Expand Down Expand Up @@ -243,18 +243,6 @@ HTTP response headers, \<key\> being the normalized HTTP Header name (lowercase)
| Has dynamic suffix | Yes |
| Example | `http.response.header.custom-header=['foo', 'bar']` |

### http.response.header.content-length

The size of the message body sent to the recipient (in bytes)

| Property | Value |
| --- | --- |
| Type | `string` |
| Has PII | false |
| Exists in OpenTelemetry | Yes |
| Example | `http.response.header.custom-header=['foo', 'bar']` |
| Aliases | `http.response_content_length`, `http.response.body.size` |

### http.response.size

The transfer size of the response (in bytes).
Expand Down Expand Up @@ -289,7 +277,7 @@ The matched route, that is, the path template in the format used by the respecti
| Has PII | false |
| Exists in OpenTelemetry | Yes |
| Example | `/users/:id` |
| Aliases | `url.template` |
| Aliases | `route` |

## Deprecated Attributes

Expand Down Expand Up @@ -319,7 +307,7 @@ The actual version of the protocol used for network communication.
| Exists in OpenTelemetry | Yes |
| Example | `1.1` |
| Deprecated | Yes, use `network.protocol.version` instead |
| Aliases | `network.protocol.version` |
| Aliases | `network.protocol.version`, `net.protocol.version` |

### http.host

Expand All @@ -333,7 +321,7 @@ The domain name.
| Example | `example.com` |
| Deprecated | Yes, use `server.address` instead |
| Deprecation Reason | Deprecated, use one of `server.address` or `client.address`, depending on the usage |
| Aliases | `server.address`, `client.address` |
| Aliases | `server.address`, `client.address`, `http.server_name`, `net.host.name` |

### http.method

Expand Down Expand Up @@ -374,6 +362,19 @@ The transfer size of the response (in bytes).
| Deprecated | Yes, use `http.response.size` instead |
| Aliases | `http.response.size` |

### http.response.header.content-length

The size of the message body sent to the recipient (in bytes)

| Property | Value |
| --- | --- |
| Type | `string` |
| Has PII | false |
| Exists in OpenTelemetry | Yes |
| Example | `http.response.header.custom-header=['foo', 'bar']` |
| Deprecated | Yes, use `http.response.body.size` instead |
| Aliases | `http.response_content_length`, `http.response.body.size` |

### http.scheme

The URI scheme component identifying the used protocol.
Expand All @@ -398,7 +399,7 @@ The server domain name
| Exists in OpenTelemetry | Yes |
| Example | `example.com` |
| Deprecated | Yes, use `server.address` instead |
| Aliases | `server.address` |
| Aliases | `server.address`, `net.host.name`, `http.host` |

### http.status_code

Expand Down Expand Up @@ -437,7 +438,7 @@ The URL of the resource that was fetched.
| Exists in OpenTelemetry | Yes |
| Example | `https://example.com/test?foo=bar#buzz` |
| Deprecated | Yes, use `url.full` instead |
| Aliases | `url.full`, `http.url` |
| Aliases | `url.full`, `url` |

### http.user_agent

Expand Down
12 changes: 6 additions & 6 deletions generated/attributes/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Local address of the network connection - IP address or Unix domain socket name.
| Exists in OpenTelemetry | Yes |
| Example | `192.168.0.1` |
| Deprecated | Yes, use `network.local.address` instead |
| Aliases | `network.local.address` |
| Aliases | `network.local.address`, `net.sock.host.addr` |

### net.host.name

Expand All @@ -47,7 +47,7 @@ Server domain name if available without reverse DNS lookup; otherwise, IP addres
| Exists in OpenTelemetry | Yes |
| Example | `example.com` |
| Deprecated | Yes, use `server.address` instead |
| Aliases | `server.address` |
| Aliases | `server.address`, `http.server_name`, `http.host` |

### net.host.port

Expand All @@ -73,7 +73,7 @@ Peer address of the network connection - IP address or Unix domain socket name.
| Exists in OpenTelemetry | Yes |
| Example | `192.168.0.1` |
| Deprecated | Yes, use `network.peer.address` instead |
| Aliases | `network.peer.address` |
| Aliases | `network.peer.address`, `net.sock.peer.addr` |

### net.peer.name

Expand Down Expand Up @@ -125,7 +125,7 @@ The actual version of the protocol used for network communication.
| Exists in OpenTelemetry | Yes |
| Example | `1.1` |
| Deprecated | Yes, use `network.protocol.version` instead |
| Aliases | `network.protocol.version` |
| Aliases | `network.protocol.version`, `http.flavor` |

### net.sock.family

Expand All @@ -151,7 +151,7 @@ Local address of the network connection mapping to Unix domain socket name.
| Exists in OpenTelemetry | Yes |
| Example | `/var/my.sock` |
| Deprecated | Yes, use `network.local.address` instead |
| Aliases | `network.local.address` |
| Aliases | `network.local.address`, `net.host.ip` |

### net.sock.host.port

Expand All @@ -177,7 +177,7 @@ Peer address of the network connection - IP address
| Exists in OpenTelemetry | Yes |
| Example | `192.168.0.1` |
| Deprecated | Yes, use `network.peer.address` instead |
| Aliases | `network.peer.address` |
| Aliases | `network.peer.address`, `net.peer.ip` |

### net.sock.peer.name

Expand Down
1 change: 1 addition & 0 deletions generated/attributes/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Peer address of the network connection - IP address or Unix domain socket name.
| Has PII | false |
| Exists in OpenTelemetry | Yes |
| Example | `10.1.2.80` |
| Aliases | `net.peer.ip`, `net.sock.peer.addr` |

### network.peer.port

Expand Down
7 changes: 5 additions & 2 deletions generated/attributes/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

# Params Attributes

- [Stable Attributes](#stable-attributes)
- [Deprecated Attributes](#deprecated-attributes)
- [params.\<key\>](#paramskey)

## Stable Attributes
## Deprecated Attributes

These attributes are deprecated and will be removed in a future version. Please use the recommended replacements.

### params.\<key\>

Expand All @@ -18,5 +20,6 @@ Decoded parameters extracted from a URL path. Usually added by client-side routi
| Exists in OpenTelemetry | No |
| Has dynamic suffix | Yes |
| Example | `params.id='123'` |
| Deprecated | Yes, use `url.path.parameter.\<key\>` instead |
| Aliases | `url.path.parameter.\<key\>` |

Loading
Loading