BREAKING
- Enhanced Sampler Function:
We've improved the sampler
function to provide more comprehensive information for making sampling decisions. This change allows users to make more informed sampling decisions based on additional context, including the parent
id and name
of the span.
The function signature has been updated as follows:
function sampler(
- name,
id, // The id of the span looking for a sampling decision
+ parent, // The parent id of the span looking for a sampling decision
+ name, // The name of the span
tracer // The tracer this span belongs too
) {
/* ... */
}
- Dependency Update:
We've updated our dependency on the tctx
library to version ^0.2
. If you were using version 0.1
, you'll need to update your import statements:
- import * as tctx from 'tctx';
+ import * as tctx from 'tctx/traceparent';
Full Changelog: v0.3.8...v0.4.0