Skip to content

Propegating current span across thread boundaries in async application #652

Description

@marcoferrer

We're using kotlin coroutines for implementing async services. One issue that we've run into is properly persisting the current span when the executed code resumes on a different thread.

There are execution hooks available that are meant for setup and tear down of thread locals which are meant for this usage.

Problem Im facing is not knowing the proper way to attach / detach a span to the current thread. The other issue that comes to mind is how to handle active span mutations that are not managed by the execution hook ie. some instrumented code is executed which creates a new child span.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions