traceId
to your logs.traceId
to your logs.getContext
method, exposed from our package:samplingRatio
SDK setting.
In those cases, you may want to reflect this on your log, so later on, you'd be able to know whether to expect to see the matching trace on Aspecto, or not.
For this, the getContext()
response payload will also contain a boolean called sampled
, reflecting the sampling result.