Skip to content

Commit

Permalink
[exporter/datadog] Add new configs to example yaml (#24553)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
Add new configs `compute_stats_by_span_kind` and
`peer_service_aggregation` to examples/collector.yaml.

**Link to tracking Issue:** <Issue number if applicable>

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>
  • Loading branch information
songy23 authored Jul 26, 2023
1 parent 368c836 commit f83c2e3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions exporter/datadogexporter/examples/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,21 @@ exporters:
#
# span_name_as_resource_name: true

## @param compute_stats_by_span_kind - enables APM stats computation based on `span.kind`
## If set to true, enables an additional stats computation check on spans to see they have an eligible `span.kind` (server, consumer, client, producer).
## If enabled, a span with an eligible `span.kind` will have stats computed. If disabled, only top-level and measured spans will have stats computed.
## NOTE: For stats computed from OTel traces, only top-level spans are considered when this option is off.
#
# compute_stats_by_span_kind: true

## @param peer_service_aggregation - enables `peer.service` aggregation on trace stats in Datadog exporter
## If set to true, enables `peer.service` aggregation in the exporter. If disabled, aggregated trace stats will not include `peer.service` as a dimension.
## For the best experience with `peer.service`, it is recommended to also enable `compute_stats_by_span_kind`.
## If enabling both causes the datadog exporter to consume too many resources, try disabling `compute_stats_by_span_kind` first.
## If the overhead remains high, it will be due to a high cardinality of `peer.service` values from the traces. You may need to check your instrumentation.
#
# peer_service_aggregation: true

## @param host_metadata - custom object - optional
## Host metadata specific configuration.
## Host metadata is the information used for populating the infrastructure list, the host map and providing host tags functionality within the Datadog app.
Expand Down

0 comments on commit f83c2e3

Please sign in to comment.