Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added remaining ECS fields to the useragent #452

Merged
merged 15 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ release.
### Breaking

### Features
- Add remaining ECS fields to the user-agent namespace
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
([#452](https://github.com/open-telemetry/semantic-conventions/pull/452/))

### Fixes

Expand Down
7 changes: 7 additions & 0 deletions docs/attributes-registry/user-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
<!-- semconv registry.user_agent(omit_requirement_level) -->
| Attribute | Type | Description | Examples |
|---|---|---|---|
| `user_agent.device.name` | string | Name of the device extracted from original | `iPhone` |
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
| `user_agent.name` | string | Name of the user-agent extracted from original. Usually refers to the browser's name [1] | `Safari` |
| `user_agent.original` | string | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. | `CERN-LineMode/2.15 libwww/2.17b3`; `Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1` |
| `user_agent.version` | string | Version of the user-agent extracted from original. Usually refers to the browser's version [2] | `14.1.2` |
trisch-me marked this conversation as resolved.
Show resolved Hide resolved

**[1]:** [Example](https://www.whatsmyua.info) of extracting browser's name from original string

**[2]:** [Example](https://www.whatsmyua.info) of extracting browser's version from original string
<!-- endsemconv -->
19 changes: 19 additions & 0 deletions model/registry/user-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,22 @@ groups:
Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.
examples: ['CERN-LineMode/2.15 libwww/2.17b3',
'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1']
- id: device.name
type: string
brief: >
Name of the device extracted from original
examples: ['iPhone']
- id: name
type: string
brief: >
Name of the user-agent extracted from original. Usually refers to the browser's name
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
examples: ['Safari']
note: >
[Example](https://www.whatsmyua.info) of extracting browser's name from original string
- id: version
type: string
brief: >
Version of the user-agent extracted from original. Usually refers to the browser's version
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
examples: ['14.1.2']
note: >
[Example](https://www.whatsmyua.info) of extracting browser's version from original string
Loading