How to disable tracing? #4253
Unanswered
CanVuralStudocu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm pretty new to OpenTelemetry world.
We have a PHP backend and Node.js Express server for SSR. For starters we want to collect tracing data for some subset of the requests. So, when a request comes to PHP server it calculates some chances, and if it is true it starts collecting tracing data from PHP side. Then comes to a point that it makes a HTTP request to Express server to render some JS and HTML. And the option of if the tracing is enabled or not is passed to Express server endpoint via PHP.
The problem:
Tracing is setup since the beginning of the Express server, to track everything correctly. But the option to stop tracing or not, comes from backend to Express server in a route. So, when the route is invoked I need to check the body and decide to stop tracing or not.
How can I stop the tracing and don't send anything?
Beta Was this translation helpful? Give feedback.
All reactions