Skip to content

OTLPLog Exporter Should Not Percent Decode Header Keys When Parsing Headers #5722

Closed as not planned
@zhihali

Description

@zhihali

This issue originally from #5623. And as the PR review suggest, should implement a fix in otlplog as well.

We need to do the same for otlplog.

escKey, e := url.PathUnescape(rawKey)
if e != nil {
err = errors.Join(err, fmt.Errorf("invalid header key: %s", rawKey))
continue
}
key := strings.TrimSpace(escKey)

Originally posted by @dmathieu in #5705 (review)

and I'll implement a fix later

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