Skip to content

Spans not being closed when parent process exits #751

Open
@kivra-mikgra

Description

@kivra-mikgra

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions