-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joining parent trace without sampling #1500
Comments
That sounds like distributed tracing, which requires Context Propagation - presumably the thing before the PHP backend which starts the trace is generating a trace id and a span id, and then those are injected into an outgoing HTTP request in an HTTP header.
I'm not sure what you mean here. |
@brettmc Correct. I verified that my tooling extracts
I mean that for every global distributed trace I'm collecting, PHP backend side span is missing most of the time. I've assumed that something is wrong with sampling making php instrumentation discard spans. Thanks for the links, I'll dig deeper and report to downstream tooling if there are any bugs. |
I would also recommend switching over to the console exporter to confirm that traces are being generated (which rules out sampling etc), and then I'd use otlp with debug logging turned on in the collector to confirm that traces are making it that far. That's also a good time to check that trace IDs align with your remote spans. |
I have the following env variables setup:
Despite explicitly setting sampler to
always_on
, most of the traces (like probably 90% or higher) from PHP backend are missing and not reaching my OTLP ingestion backend.I start traces before they come into PHP backend and based on what elastic is showing me, they have
sampled=true
on them. What do I need to do for PHP tracer to join the parent trace and send ALL the traces without sampling?The text was updated successfully, but these errors were encountered: