← Back to Pull requests

[DOCS-15903] Complete supported inferred-service peer-tag mappings #40479

Merged
domalessi merged 1 files (18 lines) on Nov 04, 2026 21:13 UTC
View on GitHub
domalessi domalessi commented on Oct 06, 2026 16:49 UTC
Author

<!-- Note: Please remember to review the Datadog Documentation Contribution Guidelines if you have not yet done so. -->

What does this PR do? What is the motivation?

Fixes DOCS-15903

Completes the documented source mappings for peer.db.system and peer.hostname, including the missing db.type source. Notes that the mappings require collected source attributes and that Agent v7.60.0 and later collect all of them by default. Adds the new source attributes to the explicit peer_tags lists for Agent v7.50.3–v7.54.1 and the OpenTelemetry Collector, which add to the built-in defaults.

Merge readiness

  • Ready for merge
  • For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.

  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.
  • AI assistance

    Codex inspected source code and existing tests, compared all 15 mapping rows, and reviewed the diff against Datadog editorial standards. Changed lines pass Vale, and whitespace and repository-hook checks pass. No end-to-end ingestion test was run.

    Additional notes

    db.system.name is excluded because its presence in the Agent registry alone does not establish support for inferred-service mapping.

    Diff: 18 lines (+10 / -8) across 1 files Reviewer: ichinaski Review duration: 42024m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.21) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.21 · 18 lines diff across 1 files
    0.21
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.47 · 5 substantive comment(s)
    0.47
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    72%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.176
    Real PR Conversation Timeline
    31 items
    github-actions[bot] github-actions[bot] commented on Oct 06, 2026 16:53 UTC
    Bot

    Preview links (active after the build_preview check completes)

    Modified Files


  • https://docs-staging.datadoghq.com/domalessi/inferred-service-peer-tags/tracing/services/inferred_services
  • domalessi domalessi commented on code on Oct 06, 2026 19:10 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -20,7 +20,7 @@ Datadog automatically discovers the dependencies for an instrumented service, su
     
     {{< site-region region="ap1,us3,us5,eu,us,ap2,uk1" >}}
     
    -Explore inferred services in the [Catalog][1] by filtering entries by entity type, such as database, queue, or third-party API. Each [service page][2] is tailored to the type of service you are investigating. For instance, database service pages show database-specific insights and include database monitoring data if you are using [Database Monitoring][3].
    +Explore inferred services in the [Catalog][1] by filtering entries by entity type, such as databases, queues, or third-party APIs. Each [service page][2] is tailored to the type of service you are investigating. For instance, database service pages show database-specific insights and include database monitoring data if you are using [Database Monitoring][3].

    Explore inferred services in the [Catalog][1] by filtering entries by entity type, such as database, queue, or third-party API. Each [service page][2] is tailored to the type of service you are investigating. For instance, database service pages show database-specific insights and include database monitoring data if you are using [Database Monitoring][3].
    

    domalessi domalessi commented on code on Oct 06, 2026 19:35 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,11 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes for each peer tag in the [Datadog Agent mapping registry][6]. Supported source attributes depend on the Agent version. To check a specific version, select its release tag in the Agent repository. Older releases, such as 7.60.0, store these mappings in `pkg/trace/config/peer_tags.ini` instead of `pkg/trace/semantics/mappings.json`.
    +
    +Multiple source attributes can map to the same peer tag. For example, `db.system` and `db.type` are both supported sources for `peer.db.system`. The [precedence of peer tags][7] determines which peer tag names an inferred entity.

    When multiple source attributes have nonempty values, which value is used for the inferred peer tag? Does inferred-service processing follow the order in the Agent mapping registry, including skipping empty values? In particular, does db.system take precedence over db.type? The Agent lookup helper alone does not confirm this behavior for inferred services. Once confirmed, we should document source-attribute precedence separately from the precedence between peer tags.

    domalessi domalessi commented on code on Oct 06, 2026 19:35 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -139,25 +143,25 @@ Peer Tag | Source Attributes
     `peer.cassandra.contact.points` | `db.cassandra.contact.points`
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
    -`peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.db.system` | `db.system.name`, `db.system`, `active_record.db.vendor`, `db.type`, `sequel.db.vendor`

    Can an APM SME confirm that db.system.name is used to derive peer.db.system for inferred services, in addition to being collected by the Agent? It appears in the Agent 7.84.1 registry, but not the 7.60.0 mapping file. Are any version or ingestion-path qualifications needed?

    domalessi domalessi commented on Oct 06, 2026 19:35 UTC
    Reviewer

    Two technical questions remain before the source-selection behavior is documented as confirmed. The table entries have been checked against the Agent mapping registry.

    ichinaski ichinaski commented on code on Oct 19, 2026 09:54 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,11 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes for each peer tag in the [Datadog Agent mapping registry][6]. Supported source attributes depend on the Agent version. To check a specific version, select its release tag in the Agent repository. Older releases, such as 7.60.0, store these mappings in `pkg/trace/config/peer_tags.ini` instead of `pkg/trace/semantics/mappings.json`.
    +
    +Multiple source attributes can map to the same peer tag. For example, `db.system` and `db.type` are both supported sources for `peer.db.system`. The [precedence of peer tags][7] determines which peer tag names an inferred entity.

    The Agent sends both tags if present, and the actual resolution happens in the backend. From quickly checking the Intake code I believe the precedence from the list is honored, and db.system wins over db.type. To be on the safe side I suggest double checking with #apm-trace-intake.

    ichinaski ichinaski commented on code on Oct 19, 2026 10:02 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -139,25 +143,25 @@ Peer Tag | Source Attributes
     `peer.cassandra.contact.points` | `db.cassandra.contact.points`
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
    -`peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.db.system` | `db.system.name`, `db.system`, `active_record.db.vendor`, `db.type`, `sequel.db.vendor`

    The Agent sends this tag as of Agent 7.83.0. I am unsure whether the backend actually uses it at all. I suggest double checking with #apm-trace-intake.

    ichinaski ichinaski approved these changes on Oct 19, 2026 10:02 UTC
    Approved Reviewer

    Approved these changes.

    SalahEddineBC SalahEddineBC approved these changes on Oct 21, 2026 08:20 UTC
    Approved Reviewer

    Approved these changes.

    SalahEddineBC SalahEddineBC commented on code on Oct 21, 2026 10:10 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,11 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes for each peer tag in the [Datadog Agent mapping registry][6]. Supported source attributes depend on the Agent version. To check a specific version, select its release tag in the Agent repository. Older releases, such as 7.60.0, store these mappings in `pkg/trace/config/peer_tags.ini` instead of `pkg/trace/semantics/mappings.json`.
    +
    +Multiple source attributes can map to the same peer tag. For example, `db.system` and `db.type` are both supported sources for `peer.db.system`. The [precedence of peer tags][7] determines which peer tag names an inferred entity.
    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,9 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags

    Just flagging some significant discrepancies between what the PR description says is being added, and what is actually being added. For example, the following pieces of information seem to be missing from the diff:

  • db.type example

  • links to the Agent mapping registry

  • explanation of version-specific mapping locations
  • Could you please confirm whether this is expected, and either update the PR or the description?

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,9 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes used to derive peer tags for inferred services. For `peer.db.system`, Datadog uses only `db.system`. The [precedence of peer tags][7] determines which peer tag names an inferred entity.

    Anchor links should be defined inline — let me know if you want a source on this, and I can point you to our internal documentation. Also suggesting to update the link text to clarify that it's another section of the page.

    The following table lists the source attributes that Datadog uses to derive peer tags for inferred services. For `peer.db.system`, Datadog uses only `db.system`. The order in the [Precedence of peer tags](#precedence-of-peer-tags) section determines which peer tag names an inferred entity.
    

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`

    Just flagging that this PR adds out.host, dns.hostname, and network.destination.ip as peer.hostname sources, but these aren't listed in the explicit peer_tags lists in the Agent v7.50.3 - v7.54.1 tab or the OpenTelemetry Collector tab. Could readers on those setups potentially be misled to expect these attributes to produce inferred entities?

    If so, would it potentially be helpful to state which Agent versions or setups the table applies to, for example in a sentence before the table? Or, alternatively, add the new attributes to the older peer_tags lists, if that is technically correct.

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: The Agent replaces IPv4 and IPv6 addresses in peer attribute values with `blocked-ip-address` to reduce metric cardinality. Localhost and certain cloud-provider metadata addresses are exempt, and port numbers are preserved. As a result, `blocked-ip-address` can appear in the names of downstream dependencies.

    Just flagging that this rewritten note names the Agent as the component that redacts IP addresses, but readers using the OpenTelemetry Collector with the Datadog Connector or exporter may not run the Agent. Can you confirm if redaction also happens in the Collector path, and adjust the subject of the sentence if needed?

    If possible, it may also be helpful for readers to clarify what the "Certain cloud-provider metadata addresses" are.

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: The Agent replaces IPv4 and IPv6 addresses in peer attribute values with `blocked-ip-address` to reduce metric cardinality. Localhost and certain cloud-provider metadata addresses are exempt, and port numbers are preserved. As a result, `blocked-ip-address` can appear in the names of downstream dependencies.
     
     #### Precedence of peer tags
     
     To assign the name to inferred entities, Datadog uses a specific order of precedence between peer tags, when entities are defined by a combination of multiple tags. 
     
     Entity type | Order of precedence
     -----------|----------------
    -Database | `peer.db.name` > `peer.aws.s3.bucket` (For AWS S3) / `peer.aws.dynamodb.table` (For AWS DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    -Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for AWS SQS) / `peer.aws.kinesis.stream` (For AWS Kinesis) > `peer.messaging.system`
    +Database | `peer.db.name` > `peer.aws.s3.bucket` (For Amazon S3) / `peer.aws.dynamodb.table` (For Amazon DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`

    Database | `peer.db.name` > `peer.aws.s3.bucket` (for Amazon S3) / `peer.aws.dynamodb.table` (for Amazon DynamoDB) / `peer.cassandra.contact.points` (for Cassandra) / `peer.couchbase.seed.nodes` (for Couchbase) > `peer.hostname` > `peer.db.system`
    

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: The Agent replaces IPv4 and IPv6 addresses in peer attribute values with `blocked-ip-address` to reduce metric cardinality. Localhost and certain cloud-provider metadata addresses are exempt, and port numbers are preserved. As a result, `blocked-ip-address` can appear in the names of downstream dependencies.
     
     #### Precedence of peer tags
     
     To assign the name to inferred entities, Datadog uses a specific order of precedence between peer tags, when entities are defined by a combination of multiple tags. 
     
     Entity type | Order of precedence
     -----------|----------------
    -Database | `peer.db.name` > `peer.aws.s3.bucket` (For AWS S3) / `peer.aws.dynamodb.table` (For AWS DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    -Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for AWS SQS) / `peer.aws.kinesis.stream` (For AWS Kinesis) > `peer.messaging.system`
    +Database | `peer.db.name` > `peer.aws.s3.bucket` (For Amazon S3) / `peer.aws.dynamodb.table` (For Amazon DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    +Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for Amazon SQS) / `peer.aws.kinesis.stream` (For Amazon Kinesis) > `peer.messaging.system`

    Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for Amazon SQS) / `peer.aws.kinesis.stream` (for Amazon Kinesis) > `peer.messaging.system`
    

    buraizu buraizu commented on code on Oct 21, 2026 20:32 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -179,10 +181,11 @@ For instructions on how to remove service overrides and migrate to inferred serv
     [3]: /database_monitoring/
     [4]: /tracing/guide/service_overrides
     [5]: /tracing/services/renaming_rules/
    +[7]: #precedence-of-peer-tags

    [5]: /tracing/services/renaming_rules/
    

    buraizu buraizu requested changes on Oct 21, 2026 20:32 UTC
    Changes Requested Reviewer

    Thanks for the PR, I've left some minor inline suggestions. Additionally, flagging some potential discrepancies for your evaluation.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -39,15 +39,19 @@ For Datadog Agent versions [7.55.1][1] through [7.59.1][2], add the following to
     apm_config:
       compute_stats_by_span_kind: true
       peer_tags_aggregation: true
    +  peer_tags: ["active_record.db.vendor","db.type","dns.hostname","network.destination.ip","out.host","sequel.db.vendor"]
     
     {{< /code-block >}}
     
    +The `peer_tags` setting supplements the default attributes so all versions in this range collect the additional hostname and database-system source attributes.
    +
     Alternatively, set these environment variables in your Datadog Agent configuration:
     
     {{< code-block collapsible="true" lang="yaml" >}}
     
     DD_APM_COMPUTE_STATS_BY_SPAN_KIND=true 
     DD_APM_PEER_TAGS_AGGREGATION=true
    +DD_APM_PEER_TAGS='["active_record.db.vendor","db.type","dns.hostname","network.destination.ip","out.host","sequel.db.vendor"]'

    Superseded: the configuration changes discussed here have been removed. The final diff updates two mapping rows and adds a collection-availability qualification; the configuration examples are unchanged.

    domalessi domalessi commented on Oct 26, 2026 22:48 UTC
    Reviewer

    Editorial review completed; the remaining technical verification questions are attached to the affected lines. Repeated configuration comments identify the examples that depend on the unresolved database-source mapping. Please resolve these questions before merge. No end-to-end ingestion test was performed.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -76,7 +80,7 @@ Alternatively, set these environment variables in your Datadog Agent configurati
     
     DD_APM_COMPUTE_STATS_BY_SPAN_KIND=true 
     DD_APM_PEER_TAGS_AGGREGATION=true
    -DD_APM_PEER_TAGS='["_dd.base_service","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","cassandra.keyspace","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.name","peer.hostname","peer.service","queuename","rpc.service","rpc.system","server.address","streamname","tablename","topicname"]'
    +DD_APM_PEER_TAGS='["_dd.base_service","active_record.db.vendor","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","cassandra.keyspace","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","db.type","dns.hostname","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.ip","network.destination.name","out.host","peer.hostname","peer.service","queuename","rpc.service","rpc.system","sequel.db.vendor","server.address","streamname","tablename","topicname"]'

    Superseded: the configuration changes discussed here have been removed. The final diff updates two mapping rows and adds a collection-availability qualification; the configuration examples are unchanged.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -99,27 +103,14 @@ connectors:
         traces:
           compute_stats_by_span_kind: true
           peer_tags_aggregation: true
    -      peer_tags: ["_dd.base_service","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.name","peer.hostname","peer.service","queuename","rpc.service","rpc.system","server.address","streamname","tablename","topicname"]
    +      peer_tags: ["_dd.base_service","active_record.db.vendor","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","db.type","dns.hostname","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.ip","network.destination.name","out.host","peer.hostname","peer.service","queuename","rpc.service","rpc.system","sequel.db.vendor","server.address","streamname","tablename","topicname"]

    Superseded for this PR: the Collector configuration changes have been removed. The feature-gate question concerns the pre-existing setup and is outside this mapping-table update.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -99,27 +103,14 @@ connectors:
         traces:
           compute_stats_by_span_kind: true
           peer_tags_aggregation: true
    -      peer_tags: ["_dd.base_service","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.name","peer.hostname","peer.service","queuename","rpc.service","rpc.system","server.address","streamname","tablename","topicname"]
    +      peer_tags: ["_dd.base_service","active_record.db.vendor","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","db.type","dns.hostname","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.ip","network.destination.name","out.host","peer.hostname","peer.service","queuename","rpc.service","rpc.system","sequel.db.vendor","server.address","streamname","tablename","topicname"]
     
     {{< /code-block >}}
     
    -If your Collector version is below v0.95.0, update the following Collector configuration:
    -
    -{{< code-block lang="yaml" collapsible="true" >}}
    -
    -exporters:
    -  datadog:
    -    traces:
    -      compute_stats_by_span_kind: true
    -      peer_tags_aggregation: true
    -      peer_tags: ["_dd.base_service","amqp.destination","amqp.exchange","amqp.queue","aws.queue.name","aws.s3.bucket","bucketname","db.cassandra.contact.points","db.couchbase.seed.nodes","db.hostname","db.instance","db.name","db.namespace","db.system","grpc.host","hostname","http.host","http.server_name","messaging.destination","messaging.destination.name","messaging.kafka.bootstrap.servers","messaging.rabbitmq.exchange","messaging.system","mongodb.db","msmq.queue.path","net.peer.name","network.destination.name","peer.hostname","peer.service","queuename","rpc.service","rpc.system","server.address","streamname","tablename","topicname"]   
    -
    -{{< /code-block >}}
    -
    -**Example**: [collector.yaml][2].
    +To configure additional peer tags with a Collector version below v0.95.0, upgrade to v0.95.0 or later. Add `datadog/connector` to the trace pipeline exporters and metric pipeline receivers, as shown in the [complete Collector configuration][2]. Apply the peer-tag settings above to the connector.

    Superseded: the Collector migration rewrite has been removed. Migration and duplicate-statistics questions are outside this mapping-table update.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +121,11 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes that Datadog uses to derive peer tags for inferred services. The order in the [Precedence of peer tags](#precedence-of-peer-tags) section determines which peer tag names an inferred entity.
    +
    +The available source attributes depend on your collection version and configuration. For the Datadog Agent and Datadog Connector, span attributes must be included in peer-tag aggregation. For the `span_metrics` connector, include the span attributes as dimensions in the [connector configuration](/opentelemetry/setup/collector_exporter/#span-metrics-connector).

    Superseded: the instruction to add span_metrics dimensions has been removed. The final introduction only qualifies that attributes must be collected and availability depends on instrumentation, collection version, and configuration.

    domalessi domalessi commented on code on Oct 26, 2026 22:48 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -139,36 +134,36 @@ Peer Tag | Source Attributes
     `peer.cassandra.contact.points` | `db.cassandra.contact.points`
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
    -`peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.db.system` | `db.system`, `active_record.db.vendor`, `db.type`, `sequel.db.vendor`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: IPv4 and IPv6 addresses in peer attribute values can appear as `blocked-ip-address` in inferred-service names to reduce metric cardinality. Redaction behavior depends on the collection path and version. The Agent's peer-tag redaction preserves port numbers and exempts localhost addresses (`127.0.0.1`, `::1`) and cloud metadata addresses (`169.254.169.254`, `fd00:ec2::254`, `169.254.170.2`).

    Superseded: the IP-redaction changes have been removed. The existing redaction note is unchanged by this PR.

    domalessi domalessi commented on code on Oct 27, 2026 21:22 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -130,7 +130,11 @@ To determine the names and types of the inferred service dependencies, Datadog u
     
     ### Peer tags
     
    -Peer Tag | Source Attributes
    +The following table lists the source attributes for each peer tag in the [Datadog Agent mapping registry][6]. Supported source attributes depend on the Agent version. To check a specific version, select its release tag in the Agent repository. Older releases, such as 7.60.0, store these mappings in `pkg/trace/config/peer_tags.ini` instead of `pkg/trace/semantics/mappings.json`.
    +
    +Multiple source attributes can map to the same peer tag. For example, `db.system` and `db.type` are both supported sources for `peer.db.system`. The [precedence of peer tags][7] determines which peer tag names an inferred entity.

    Following up on the earlier db.system-only wording: review of the inferred-service mapping code and existing tests confirmed four supported sources for peer.db.system: db.system, active_record.db.vendor, db.type, and sequel.db.vendor. The public Agent 7.60.0 mapping lists the same four sources.

    The revised table reflects that verification. db.system.name remains excluded because its presence in the Agent registry alone does not establish an inferred-service mapping. This PR makes no claim about precedence between source attributes; the existing precedence section concerns choosing between peer tags. The tests were inspected, not executed.

    domalessi domalessi commented on code on Oct 27, 2026 21:22 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: The Agent replaces IPv4 and IPv6 addresses in peer attribute values with `blocked-ip-address` to reduce metric cardinality. Localhost and certain cloud-provider metadata addresses are exempt, and port numbers are preserved. As a result, `blocked-ip-address` can appear in the names of downstream dependencies.
     
     #### Precedence of peer tags
     
     To assign the name to inferred entities, Datadog uses a specific order of precedence between peer tags, when entities are defined by a combination of multiple tags. 
     
     Entity type | Order of precedence
     -----------|----------------
    -Database | `peer.db.name` > `peer.aws.s3.bucket` (For AWS S3) / `peer.aws.dynamodb.table` (For AWS DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    -Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for AWS SQS) / `peer.aws.kinesis.stream` (For AWS Kinesis) > `peer.messaging.system`
    +Database | `peer.db.name` > `peer.aws.s3.bucket` (For Amazon S3) / `peer.aws.dynamodb.table` (For Amazon DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`

    Applied the Amazon product names and lowercase “for” in 2ae7ee260a.

    domalessi domalessi commented on code on Oct 27, 2026 21:22 UTC
    Code Review
    hugo/content/en/tracing/services/inferred_services.md:1
    @@ -140,24 +142,24 @@ Peer Tag | Source Attributes
     `peer.couchbase.seed.nodes` | `db.couchbase.seed.nodes`
     `peer.db.name` | `db.name`, `mongodb.db`, `db.instance`, `cassandra.keyspace`, `db.namespace`
     `peer.db.system` | `db.system`
    -`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`
    +`peer.hostname` | `peer.hostname`, `hostname`, `net.peer.name`, `db.hostname`, `network.destination.name`, `grpc.host`, `http.host`, `server.address`, `http.server_name`, `out.host`, `dns.hostname`, `network.destination.ip`
     `peer.kafka.bootstrap.servers` | `messaging.kafka.bootstrap.servers`
     `peer.messaging.destination` | `topicname`, `messaging.destination`, `messaging.destination.name`, `messaging.rabbitmq.exchange`, `amqp.destination`, `amqp.queue`, `amqp.exchange`, `msmq.queue.path`, `aws.queue.name`
     `peer.messaging.system` | `messaging.system`
     `peer.rpc.service` | `rpc.service`
     `peer.rpc.system` | `rpc.system`
     `peer.service` | `peer.service`
     
    -**Note**: Peer attribute values that match IP address formats are modified and redacted with `blocked-ip-address` to prevent unnecessary noise and tagging metrics with high-cardinality dimensions. As a result, you may encounter some `blocked-ip-address` services appearing as downstream dependencies of your instrumented services.
    +**Note**: The Agent replaces IPv4 and IPv6 addresses in peer attribute values with `blocked-ip-address` to reduce metric cardinality. Localhost and certain cloud-provider metadata addresses are exempt, and port numbers are preserved. As a result, `blocked-ip-address` can appear in the names of downstream dependencies.
     
     #### Precedence of peer tags
     
     To assign the name to inferred entities, Datadog uses a specific order of precedence between peer tags, when entities are defined by a combination of multiple tags. 
     
     Entity type | Order of precedence
     -----------|----------------
    -Database | `peer.db.name` > `peer.aws.s3.bucket` (For AWS S3) / `peer.aws.dynamodb.table` (For AWS DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    -Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for AWS SQS) / `peer.aws.kinesis.stream` (For AWS Kinesis) > `peer.messaging.system`
    +Database | `peer.db.name` > `peer.aws.s3.bucket` (For Amazon S3) / `peer.aws.dynamodb.table` (For Amazon DynamoDB) / `peer.cassandra.contact.points` (For Cassandra) / `peer.couchbase.seed.nodes` (For Couchbase) > `peer.hostname` > `peer.db.system`
    +Queue | `peer.messaging.destination` > `peer.kafka.bootstrap.servers` (for Kafka) / `peer.aws.sqs.queue` (for Amazon SQS) / `peer.aws.kinesis.stream` (For Amazon Kinesis) > `peer.messaging.system`

    Applied the Amazon product names and lowercase “for” in 2ae7ee260a.

    domalessi domalessi commented on Oct 28, 2026 19:13 UTC
    Author

    Thanks for the review and feedback, @buraizu ! Ready for another look.

    buraizu buraizu approved these changes on Oct 29, 2026 00:27 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    domalessi domalessi
    Labels
    risk: low confidence: 72.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 20.6% (LOW) · Higher = larger blast radius
    20.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 72.3% · Lower = rushed or shallow review
    72.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.7% · Safe to merge
    5.7%