[DOCS-15903] Complete supported inferred-service peer-tag mappings #40479
Preview links (active after the build_preview check completes)
Modified Files
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].
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.
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?
Two technical questions remain before the source-selection behavior is documented as confirmed. The table entries have been checked against the Agent mapping registry.
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.
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.
Approved these changes.
Approved these changes.
https://github.com/ddoghq/dd-source/blob/05eaa15a2dd323affe30867d1831fb8d5bb6f6be/domains/apm/shared/libs/peertags/go/peer-tags-config.ini#L9 only db.system is used to derive peer.db.system currently
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 Could you please confirm whether this is expected, and either update the PR or the description?
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.
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.
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.
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`
[5]: /tracing/services/renaming_rules/
Thanks for the PR, I've left some minor inline suggestions. Additionally, flagging some potential discrepancies for your evaluation.
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.
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.
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.
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.
Superseded: the Collector migration rewrite has been removed. Migration and duplicate-statistics questions are outside this mapping-table update.
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.
Superseded: the IP-redaction changes have been removed. The existing redaction note is unchanged by this PR.
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.
Applied the Amazon product names and lowercase “for” in 2ae7ee260a.
Applied the Amazon product names and lowercase “for” in 2ae7ee260a.
Thanks for the review and feedback, @buraizu ! Ready for another look.
Approved these changes.
ichinaski
domalessi
<!-- 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.systemandpeer.hostname, including the missingdb.typesource. 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 explicitpeer_tagslists for Agent v7.50.3–v7.54.1 and the OpenTelemetry Collector, which add to the built-in defaults.Merge readiness
For Datadog employees:
<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./reviewto 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.nameis excluded because its presence in the Agent registry alone does not establish support for inferred-service mapping.