Skip to content

Preserve multiple HTTP header values as a list instead of a joined string #2360

@aabmass

Description

@aabmass

Right now, HTTP headers are stored as list type span attribute with one item. If there are repeated headers, they are joined with a comma as (being implemented in #2266). We could instead preserve each header value as a separate string.

Current behavior:

{
  "http.request.header.custom_test_header_1": ("test-header-value-1,test-header-value-2",),
}

Proposed behavior

{
  "http.request.header.custom_test_header_1": ("test-header-value-1", "test-header-value-2"),
}

This may require changing some public signatures or adding new overloads to keep backward compatibility.

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