elastic / elastic/apm-data

Map OTLP HTTP request and response headers

Open
#285 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
12
Forks
31
Avg merge
8h 55m
Merged PRs (30d)
2

Description

Per the [OTel semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/), client and server HTTP spans may send the request and response headers using the following attributes:

- `http.request.header.`
- `http.response.header.`

We don't currently map these in `traces.go` onto the `modelpb.HTTPRequest.Headers` and `modelpb.HTTPResponse.Headers`. As a result, if these are included in the span attributes, they are mapped onto `labels.*` which is not ideal.

![image](https://github.com/elastic/apm-data/assets/3669103/a344e4ba-2c0a-4867-886a-5e07f9646950)

These should ideally be mapped to our APM model.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.