TracesSamplerCallback
allows returning null
in Java SDK
#4048
Labels
TracesSamplerCallback
allows returning null
in Java SDK
#4048
Description
Docs do not mention it's possible to return
null
fromTracesSamplerCallback
(https://develop.sentry.dev/sdk/telemetry/traces/#tracessampler).The question is whether we should align with other SDKs in not allowing to return
null
or if we consider this a feature worth keeping.PRO for keeping it:
Consequences of removing this possibility:
Also see python: https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/tracing.py#L1070C9-L1090
The text was updated successfully, but these errors were encountered: