opa icon indicating copy to clipboard operation
opa copied to clipboard

OpenTelemetry tracing request specific header attribute

Open rasmuscc opened this issue 1 year ago • 3 comments

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

rasmuscc avatar Sep 27 '24 08:09 rasmuscc

Hello @rasmuscc thanks for filing this request. If you could provide more context around why this is required and the benefit of this feature, that would be helpful. Thanks.

ashutosh-narkar avatar Sep 27 '24 20:09 ashutosh-narkar

It is not uncommon that calls to REST services include some sort of trace og log ID that is not an OpenTelemetry trace header. This feature request would support including such headers and any other header for that matter, as an OpenTelemetry trace attribute

rasmuscc avatar Sep 30 '24 11:09 rasmuscc

This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.

stale[bot] avatar Nov 04 '24 00:11 stale[bot]