-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Basic and namedtracer examples do not print traces #1197
Comments
Using WithBatcher prevents correct handling of shutdown for the batch span processor, and should either return the Shutdown() function, or be removed entirely. The stdout NewExportPipeline and InstallNewPipeline also make it impossible to correctly handle shutdown, as they make use of WithBatcher. Even if we switched to using WithSpanProcessor directly, we need to return the Shutdown function to ensure it can be correctly handled. |
This sounds like a good thing to address directly as these are useful convenience functions. We should updated these functions (for all exporters) to support returning a generalized shutdown function or the BSP shutdown function directly. |
Should the |
This sounds reasonable to me. This is the main thing operators of instrumentation will interact with so it would follow that it would be a useful place to facilitate all this. |
Would we need to get a spec update to reflect that new interface? |
Should we reopen this to track adding Shutdown(), or open a new issue? |
Can you open a new issue? |
Both examples appear to be missing traces.
If I add sdktrace.WithSyncer(exp) as an argument to sdktrace.NewProvider here, that fixes the problem for the namedtracer. I can also do the same inside the stdout exporter to fix the basic example.
But looking at the BatchSpanProcessor, it looks like the sdktrace.WithBatcher that does exist should cause traces to be printed.
cc @nilebox
The text was updated successfully, but these errors were encountered: