Notes
Features
- Updated
koainstrumentation to properly wrapRouterwhen using@koa/router@15.0.0+ (#3550) (f1e08ad) - Added ability to configure a ratio based sampler (#3501) (f300bd5)
- To assign a ratio based sampler, set
config.distributed_tracing.sampler.root,config.distributed_tracing.sampler.remote_parent_sampled, orconfig.distributed_tracing.sampler.remote_parent_not_sampledto{ trace_id_ratio_based: { ratio: <float between 0 and 1> }} - To assign via environment variables set
NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>='trace_id_ratio_based'andNEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>_RATIO=<float between 0 and 1>where<TYPE>is one ofROOT,REMOTE_PARENT_SAMPLED, orREMOTE_PARENT_NOT_SAMPLED
- To assign a ratio based sampler, set
- Updated configuration to allow
adaptive.sampling_targetto be set forconfig.distributed_tracing.sampler.root,config.distributed_tracing.sampler.remote_parent_sampled, andconfig.distributed_tracing.sampler.remote_parent_not_sampled(#3532) (44f51dd) - Added support for OTEL span links (#3528) (e840690)
- Replaced
defaultwithadaptiveas the default for samplers (#3543) (3f03162) - Preliminary support for partial granularity traces (Not available for production use)
- Added
essentialtype for partial granularity traces (#3547) (3d85fb5) - Added
reducedtype for partial granularity traces. (#3540) (cfa8f41) - Added partial granularity samplers and assign transactions with
isPartialTracewhen partial granularity sampling decisions have been made (#3544) (1535a82) - Refactored samplers into classes and store them on
agent.sampler.*(#3527) (ad63441) - Updated
Samplersclass to normalize logger messages, short circuit when applicable and remove optional chaining checks (#3546) (4f7684c) - Updated samplers to assign priority between 0-1 when DT is disabled or both full and partial granularity are disabled (#3559) (7a1c37e)
- Updated transaction to store partial granularity indicator as
.partialType(#3561) (a7f20d8) - Updated when partial granularity rules are applied (#3553) (a4bdf4f)
- Added
toStringandget [Symbol.toStringTag]()to default Sampler class (#3562) (771168d)
- Added
Bug fixes
Documentation
Miscellaneous chores
- Improved logging around
preconnectpayload - Utilization resolution is now done concurrently (#3556) (8386360)
- Collected OTEL instrumentation scope metadata on all OTEL spans. (#3554) (75703c4)
- Improved OTEL hrtime processing (#3557) (8f187b1)
- Renamed config
opentelemetry_bridgetoopentelemetry(#3565) (c9d156f)
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)