Skip to content

Also copy function name #16

@kevinburkenotion

Description

@kevinburkenotion

I ran into this when doing Datadog tracing with this library enabled. The function name just shows up as newFn in the Datadog APM trace view which isn't very helpful. Instead it would be good to copy the name property from the internal function the same way you copy the length value currently (with Object.defineProperty), then it would show up as cookieParser or compression or whatever instead of newFn.

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