Skip to content

Use CreateThread events to establish parent-child links between thread traces #26

@wenkokke

Description

@wenkokke

OpenTelemetry spans support trace parents, which could be leveraged to establish parent-child links between thread traces.

This requires some way of figuring out which thread is responsible for a CreateThread event. It is possible that this happens within a RunThreadStopThread span, in which case it is relatively easy, or it happens outside of such a span, in which case it'll be important to remember the most recent thread that was executed on each capability.

Unfortunately, this would require that processThreadStateSpans move away from the router model introduced by liftRouter, since this requires cross-thread information sharing.

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