Skip to content
Open
Changes from all 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
11 changes: 11 additions & 0 deletions hugo/content/en/events/explorer/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ This list describes automatically ingested reserved attributes with events.
| `service` | The name of the application or service generating the events. |
| `message` | By default, Datadog ingests the value of the `message` attribute as the body of the event entry. |

### Events with multiple service tags

The reserved `service` attribute accepts one value. If an event has multiple `service` tags:

- V1 selects the first `service` tag it processes. Because tags are not sorted, the result is not deterministic.
- V2 sorts the tags alphabetically and selects the first `service` tag.

For example, consider an event with `env:prod`, `service:payments`, `team:store`, and `service:checkout`. V1 can assign either service value. V2 assigns `checkout`, because `service:checkout` comes before `service:payments` alphabetically.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For example, consider an event with `env:prod`, `service:payments`, `team:store`, and `service:checkout`. V1 can assign either service value. V2 assigns `checkout`, because `service:checkout` comes before `service:payments` alphabetically.
For example, consider an event with `env:prod`, `service:payments`, `team:store`, and `service:checkout`. V1 can assign either `service` value. V2 assigns `checkout`, because `service:checkout` comes before `service:payments` alphabetically.


Send only one `service` tag per event and use another tag key for additional dimensions. A `service:<value>` query matches the reserved attribute; use `tags:("service:<value>")` to find any value in the raw tag list.

To search a tag that has the same key as a reserved attribute, use the `tags` search syntax.
Example: `tags:("status:<status>")`

Expand Down
Loading