Question
We want to use the Head-based sampling, as suggested in your documentation, to keep the entire transaction traces.
We managed to achieve the result in the Android app using the dd-sdk-android. In the Android library, we found two different Sampler interfaces:
The default implementation for the first sampler uses random sampling, while the implementation of the second uses deterministic sampling. Setting our custom sampling frequency only to the deterministic one and 100% to the other permits us to achieve the result on Android.
On the contrary on the DD iOS library, we saw that we could configure the sampling rate in two different points:
- on the
Trace.Configuration init level
- on the
Trace.Configuration.URLSessionTracking init level passed to the Trace.Configuration init
Both the settings seem to make the tracer use the same random Sampler that doesn't permit us to link the spans between the chain of services and implement a Head-based sampling strategy to keep the entire transaction traces like Android.
How can we achieve this result on iOS?
Question
We want to use the Head-based sampling, as suggested in your documentation, to keep the entire transaction traces.
We managed to achieve the result in the Android app using the dd-sdk-android. In the Android library, we found two different Sampler interfaces:
The default implementation for the first sampler uses random sampling, while the implementation of the second uses deterministic sampling. Setting our custom sampling frequency only to the deterministic one and 100% to the other permits us to achieve the result on Android.
On the contrary on the DD iOS library, we saw that we could configure the sampling rate in two different points:
Trace.Configurationinit levelTrace.Configuration.URLSessionTrackinginit level passed to theTrace.ConfigurationinitBoth the settings seem to make the tracer use the same random Sampler that doesn't permit us to link the spans between the chain of services and implement a Head-based sampling strategy to keep the entire transaction traces like Android.
How can we achieve this result on iOS?