Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into feature/configurablejw…
Browse files Browse the repository at this point in the history
…kstimeout
  • Loading branch information
andrewmcgivery committed Dec 17, 2024
2 parents 5b48e31 + 880eede commit aa68ea8
Show file tree
Hide file tree
Showing 98 changed files with 4,283 additions and 1,588 deletions.
7 changes: 0 additions & 7 deletions .changesets/breaking_drop_reuse_fragment.md

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions .changesets/config_simon_router_version_in_cache_key.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changesets/docs_fix_helm_yaml_config_link.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changesets/feat_feat_fleet_detector_add_schema_metrics.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changesets/feat_glasser_pq_client_name.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changesets/feat_glasser_pq_safelist_override.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changesets/feat_jr_add_fleet_awareness_plugin.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changesets/fix_address_dentist_buyer_frown.md

This file was deleted.

53 changes: 0 additions & 53 deletions .changesets/fix_bnjjj_fix_880.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changesets/fix_bnjjj_fix_retry_metric.md

This file was deleted.

34 changes: 34 additions & 0 deletions .changesets/fix_bryn_datadog_agent_sampling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
### Enable accurate Datadog APM metrics ([PR #6017](https://github.com/apollographql/router/pull/6017))

The router supports a new preview feature, the `preview_datadog_agent_sampling` option, to enable sending all spans to the Datadog Agent so APM metrics and views are accurate.

Previously, the sampler option in `telemetry.exporters.tracing.common.sampler` wasn't Datadog-aware. To get accurate Datadog APM metrics, all spans must be sent to the Datadog Agent with a `psr` or `sampling.priority` attribute set appropriately to record the sampling decision.

The `preview_datadog_agent_sampling` option enables accurate Datadog APM metrics. It should be used when exporting to the Datadog Agent, via OTLP or Datadog-native.

```yaml
telemetry:
exporters:
tracing:
common:
# Only 10 percent of spans will be forwarded from the Datadog agent to Datadog. Experiment to find a value that is good for you!
sampler: 0.1
# Send all spans to the Datadog agent.
preview_datadog_agent_sampling: true


```

Using these options can decrease your Datadog bill, because you will be sending only a percentage of spans from the Datadog Agent to Datadog.

> [!IMPORTANT]
> Users must enable `preview_datadog_agent_sampling` to get accurate APM metrics. Users that have been using recent versions of the router will have to modify their configuration to retain full APM metrics.
> [!IMPORTANT]
> The router doesn't support [`in-agent` ingestion control](https://docs.datadoghq.com/tracing/trace_pipeline/ingestion_mechanisms/?tab=java#in-the-agent).
> Configuring `traces_per_second` in the Datadog Agent won't dynamically adjust the router's sampling rate to meet the target rate.
> [!IMPORTANT]
> Sending all spans to the Datadog Agent may require that you tweak the `batch_processor` settings in your exporter config. This applies to both OTLP and Datadog native exporters.
Learn more by reading the [updated Datadog tracing documentation](https://apollographql.com/docs/router/configuration/telemetry/exporters/tracing/datadog) for more information on configuration options and their implications.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Fix transmitted header value for Datadog priority sampling resolution ([PR #6017](https://github.com/apollographql/router/pull/6017))

The router now transmits correct values of `x-datadog-sampling-priority` to downstream services.

Previously, an `x-datadog-sampling-priority` of `-1` was incorrectly converted to `0` for downstream requests, and `2` was incorrectly converted to `1`. When propagating to downstream services, this resulted in values of `USER_REJECT` being incorrectly transmitted as `AUTO_REJECT`.

8 changes: 0 additions & 8 deletions .changesets/fix_fix_query_hashing.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changesets/fix_renee_quieres_queries.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changesets/fix_tninesling_cost_name_handling.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changesets/maint_lrlna_remove_catch_unwind.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changesets/maint_renee_router_297_monotonic_counters.md

This file was deleted.

Loading

0 comments on commit aa68ea8

Please sign in to comment.