Skip to content

Forward line and file information from event metadata into opentelemetry events #1910

Closed
@djc

Description

@djc

Feature Request

As far as I can tell, the tracing-opentelemetry code currently does not use the file() and line() elements of event metadata when creating an opentelemetry event. These would be nice to have in addition to the target.

Crates

tracing-opentelemetry

Motivation

More accurate information will make it easier to pinpoint issues.

Proposal

The event attributes could carry "file" and "line" attributes if the metadata yields Some for the relevant methods.

cc @jtescher

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/opentelemetryRelated to the `tracing-opentelemetry` crate.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions