Skip to content

OtelAxumLayer and tracing::instrument #135

Open
@ShovelJockey

Description

@ShovelJockey

I have been testing with the axum middleware and instrument and wanted to clear up a few things.

Does the layer from this crate cover the creation of trace/span for the initial request, while the instrument macro covers the creation of spans for func calls that happen as a result of that request? if so will the instrument spans be children of the spans created by OtelAxumLayer?

Is there a recommended method to pass the really handy data created by the OtelAxumLayer in its spans to child spans created by instrument would this require the passing of these fields as args on each macro call?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions