Skip to content
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

Spans not being closed when parent process exits #751

Open
kivra-mikgra opened this issue Jun 13, 2024 · 1 comment
Open

Spans not being closed when parent process exits #751

kivra-mikgra opened this issue Jun 13, 2024 · 1 comment

Comments

@kivra-mikgra
Copy link

I'm trying to solve some issues we have with spans not being exported. It happens specifically when spans are not being closed.
The specific scenario that we have is that we get a http request that requires an internal http request (that we perform with Finch). When the Finch request takes too long the http request from the outside times out. So the Finch request gets shut down without being able to close the span (since no end event is emitted).
So we can see traces for the incoming (Phoenix) http request, but the internal (Finch) one doesn't show up (since it was only started, never closed). This seems to be a general pattern when process exits without doing clean up, and not limited to Finch.

To see child spans of our Phoenix requests that times out is really important to us.

Thank you!

@tsloughter
Copy link
Member

I think this issue speaks to a need for a function like opentelemetry:span_monitor(pid()).

Even if it is decided that instrumentation libraries should be registering their spans with the monitor it gives the user the ability to enforce it if the library doesn't yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants