Skip to content

Using http.request undocumented behavior #585

Closed
@yotamN

Description

@yotamN

I noticed that in the chain method within chain.ts, http.request is being used with headers as a string array instead of an object. This behavior is undocumented and could potentially cause issues in the future. Currently, OpenTelemetry auto-instrumentation is affected because it expects headers to be an object.

Is there a specific reason for using an array for headers? If not, I have opened a pull request to address this issue.

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