Skip to content

Named function as middleware #34

Description

@chdanielmueller

I observe my application using OpenTelemetry.
@opentelemetry/instrumentation-express uses the function name of the middleware as the name of the span.
Currently this reads: middleware - <anonymous>.

It would be great if expressMiddleware() would return a named rather than an anonymous function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions