-
Notifications
You must be signed in to change notification settings - Fork 648
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
ConsoleSpanExporter doesn't print out as expected #448
Comments
That's because of the This is confusing behavior for an example though. |
I just tested this again with the batch processor, waited over 2 minutes and still nothing until I cancelled the server process. I haven't tested this with other exporters to test the behaviour. I agree the example should probably be changed to use the SImple processor, but I think there is still a regression somewhere in the |
Yes, I also think there is a regression. This is happening with the auto instrumentation example too, it didn't happen before. |
Looks like the flush of the buffering never happens, maybe it makes sense to call self.out.flush() at the end of ConsoleSpanExporter.export. |
@knabben yes, you are right. I am already preparing a patch for this issue. |
Actually the default delay is 5 seconds opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/trace/export/__init__.py Line 107 in 5b2e693
I am proposing a fix for this on #455. |
Environment
I setup a new virtualenv and ran through the http example: https://github.com/open-telemetry/opentelemetry-python/tree/master/examples/http.
Expected
After running the client, I was expecting to see the span being printed in both the client and the server consoles.
Actual
The span was printed to the client console. On the server side, the span was only printed once I exited the application (ctrl+c)
The text was updated successfully, but these errors were encountered: