Possibility to disable injection of traceparent in requests to WebApp

Brehmer, Christian 21 Reputation points
2022-07-22T17:24:05.197+00:00

Hi,

lately we've noticed that our openTelemetry setup / tracing inside a webapp broke. While azure healthcheck requests to /robots933456.txt were still recorded correctly, everything else went silent (while running local tests or in other environments was working fine).

After quite some debugging, talking with the otel-js devs we found out, that Azure apparently started injecting a traceparent header in the requests that were send to the app and since this the ending flag (trace Flag) on this was 00 the recording of the following child traces was disabled/stopped.

While we've found a workaround for this, it still kind of breaks our tooling which complains about missing trace data/spans. Since another dev joined the discussion with the same problems but another language/platform (.NET) i feel like i should pursue this topic and ask here if there is any way to disable the injection of the traceparent header in the requests?

While we didn't actually document the changes in behavior on the azure apps, the second dev did:

2022-06-09 23:30 UTC - three apps stopped sending most OTel data (same app, different envs; we never do something to multiple envs at once)
2022-06-15 05:25 UTC - three apps resumed sending all OTel data
2022-06-18 00:00 UTC - two apps stopped sending most OTel data
2022-07-13 18:10 UTC - the remaining app stopped sending most OTel data

Another question would be if there is any source of information that would describe such changes in advance so that we could in the future possibly mitigate such problems.

For further info, you can follow the (closed) issue/conversation here: https://github.com/open-telemetry/opentelemetry-js/issues/3057

I'd appreciate any hints, thanks a lot in advance

kind regards
Christian

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.