Skip to content

OpenTelemetry tracing request specific header attribute #7077

Open
@rasmuscc

Description

@rasmuscc

What is the underlying problem you're trying to solve?

We are sending a REST request in OPA with a request specific header and would like to include this header in the OpenTelemetry span as an attribute.
E.g. using: http.response.header.

Describe the ideal solution

I'd imagine it could be configured something like this:

distributed_tracing:
  type: "grpc"
  attributes:
    headers:
      - header1

Should produce a span like this:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions