observability: skip batch-span links for TraceNullContext requests

TraceNullContext forwards every attribute to itself, so the previous
root_span.get_span_context() probe returned the null context itself and
otel's exporter failed with 'expected bytes, TraceNullContext found'.
Gate on tracing_enable before probing.
This commit is contained in:
2026-11-17 22:27:55 +08:00
parent 34d2224b7f
commit 2372edd73d
File diff suppressed because it is too large Load Diff