Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
9 changes: 7 additions & 2 deletions config/_default/menus/main.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4449,16 +4449,21 @@ menu:
parent: tracing_services
identifier: tracing_service_remapping_rules
weight: 908
- name: Tag Enrichment
url: tracing/services/tag_enrichment
parent: tracing_services
identifier: tracing_tag_enrichment
weight: 909
- name: Service Override Removal
url: tracing/services/service_override_removal
parent: tracing_services
identifier: tracing_service_override_removal
weight: 909
weight: 910
- name: APM Monitors
url: /monitors/create/types/apm/
parent: tracing_services
identifier: tracing_apm_monitors
weight: 910
weight: 911
- name: Endpoint Observability
url: internal_developer_portal/software_catalog/endpoints/
identifier: endpoint_observability
Expand Down
71 changes: 71 additions & 0 deletions content/en/tracing/services/tag_enrichment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: Tag Enrichment
description: Automatically enrich telemetry with team and system tags from Software Catalog service definitions without redeploying code.
further_reading:
- link: "/tracing/services/service_remapping_rules"
tag: "Documentation"
text: "Service remapping rules"
- link: "/internal_developer_portal/software_catalog/"
tag: "Documentation"
text: "Software Catalog"
---

{{< callout btn_hidden="true" >}}
Tag enrichment is in Preview.
{{< /callout >}}

## Overview

Use tag enrichment to add `team` and `system` tags to your APM spans without code changes or redeployment. Datadog automatically pulls tag values from service metadata you've already defined in Software Catalog.

Tag enrichment rules let you control which services are enriched, where each tag value comes from, and how it's applied.
Comment thread
domalessi marked this conversation as resolved.
Outdated

## Prerequisites

You must have the Datadog Admin Role to create tag enrichment rules. See [Role-based access control][2] for details.

## Create a tag enrichment rule

### Default tag enrichment rules

To enable a default rule, navigate to **IDP** > **Manage** > [**Tag Enrichment**][1] and toggle on the default rule for `team` or `system` at the bottom of the page.

{{< img src="tracing/services/tag_enrichment/tag-enrichment-landing.png" alt="The Tag Enrichment page showing the Suggested rules panel, with options to create enrichment rules for system and team tags for all services." >}}

Enabling a default rule applies `team` or `system` to all telemetry of services based on the Entity Metadata defined in IDP. Only services with Entity Metadata populated are enriched. Tags are added only when the service's telemetry does not already have a value for that tag.

### Custom tag enrichment rules

Custom rules let you target a specific set of services and configure exactly how each tag value is sourced and applied.

1. In Datadog, navigate to **IDP** > **Manage** > [**Tag Enrichment**][1] and click **+ Add Rule**.
1. Select entities to enrich. As you select entities, a query is built in the background. To edit the query, select **Build Advanced Query**.
{{< img src="tracing/services/tag_enrichment/tag-enrichment-adv-query.png" alt="The Add IDP tag enrichment rule modal with the Build Advanced Query tab selected, showing fields for tag key, operator, and value, with an Add Condition option." >}}
- Select **Add Condition** to add an `AND` condition to your query.
- Add multiple values in the **Value** section to create an `OR` condition.
1. Choose tags and enrichment methods:
- Select the `team` tag, `system` tag, or both.
- For each tag, select whether the tag value comes from Entity Metadata, the value of a different tag, or a fixed value.
- Choose whether the value is applied only when it doesn't already exist, or is appended to the current list of values for that tag.
1. By default, tags are added to all telemetry. Select which telemetry types to enrich.
1. Optionally, enter a descriptive name for the rule.
1. Review and save your rule. After you save the rule, it can take up to an hour for enrichment to be fully applied to incoming telemetry.

### Add a tag enrichment rule from a service page

On any service page that is missing a `team` or `system` tag, click **Add Tags** on the top banner to enrich telemetry for that service.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@marianafrangos I'm having a hard time finding this in the UI. Can you point me in the right direction or take a screenshot for me?

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.

This will be rolled out early next week. I'm fine with removing it from the doc until then (or whatever is best practice)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's leave this in, since this doc won't be merged until next week anyway. Let me know when the UI is ready, and I'll add a screenshot here!


## Tag enrichment behavior

- **Impacted telemetry**: Tag enrichment applies to APM spans only.
- **Historical data**: Tag enrichment rules apply only to telemetry ingested while a rule is active. Past data is not updated retroactively. Deleting or modifying a rule stops it from applying to new telemetry, but does not update previously ingested data.
- **Metadata updates**: Updating or adding Entity Metadata to services for `team` or `system` while an enrichment rule is enabled, including the default rule, automatically updates those tags.
- **Rule processing order**: Tag enrichment rules are applied in the order in which they were created. Rules at the top of the list take precedence over rules below them.
- **Interaction with remapping rules**: Tag enrichment rules are applied after service remapping rules. If a service remapping rule modifies the `service` tag, enrichment uses the updated service name when looking up IDP metadata.

## Further reading

{{< partial name="whats-next/whats-next.html" >}}

[1]: https://app.datadoghq.com/software/settings/tag-enrichment
[2]: /account_management/rbac/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading