Summary
In this release, the tracer adds support for tag-based sampling in sampling rules set via remote configuration. See https://docs.datadoghq.com/tracing/trace_collection/runtime_config/ for more on remote configuration.
Additionally, the tracer now supports matching numeric values via span sampling rules, in addition to string values.
For example, [{"error_code": "4??", "sampling_rate":"0.01"}]
will now match both the integer 403 and
the string `"403". String matches are now case-insensitive.
This release brings several bug fixes to the tracer, contrib packages, and remote configuration.
Changes
Application Performance Monitoring (APM)
- ddtrace/tracer: added support for metrics tag sampling by @dianashevchenko in #2662
- ddtrace/tracer: adding support of tags in remote sampling rules. by @yuanyuanzhao3 in #2676
- ddtrace/tracer: added a WithAgentTimeout option to reduce the test suite duration with no agent by @dianashevchenko in #2661
Fixes
Application Performance Monitoring (APM)
- docs: fix dbStats example in contrib/database/sql by @mtoffl01 in #2669
- contrib/dimfeld/httptreemux.v5: fix route and name for 30X redirects by @darccio in #2685
- contrib/database/sql: Disable DBStats if statsd client initialization fails by @mtoffl01 in #2682
- fix: Don't call
c.Error(...)
inside echotrace middlewares by @nakkamarra in #2609 - {ddtrace/tracer,datastreams}: set default agent TO to 10s by @ahmed-mez in #2655
- internal/remoteconfig: fixes data race when accessing capabilities by @SvenGasterstaedt in #2652
- ddtrace/tracer: fix calculation of
tracestate
length by @bouwkast in #2585 - ddtracer/trace: if tracing disabled don't call agent to get features by @bstncartwright in #2482
- ddtrace/tracer: fix sampling rule override for manual keep by @dianashevchenko in #2666
- internal: Fixing
_dd.p.dm
decision maker collision on number 10. by @yuanyuanzhao3 in #2672 - ddtrace/tracer: remove agent_psr when rule_psr is set by @dianashevchenko in #2668
New Contributors
- @nakkamarra made their first contribution in #2609
- @SvenGasterstaedt made their first contribution in #2652
- @bouwkast made their first contribution in #2585
- @bstncartwright made their first contribution in #2482
Full Changelog: v1.63.1...v1.64.0