Skip to content

[otel-data] Add HTTP body size, severity aliases - #152622

Merged
axw merged 4 commits into
elastic:mainfrom
axw:oteldata-ecs-aliases
Jul 7, 2026
Merged

axw merged 4 commits into
elastic:mainfrom
axw:oteldata-ecs-aliases

Conversation

@axw

@axw axw commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Add ECS aliases for OTel semconv attributes with identical semantics:

  • attributes.http.request.body.size -> http.request.body.bytes
  • attributes.http.response.body.size -> http.response.body.bytes
  • severity_number -> event.severity

The body.size attributes are explicitly mapped as long, since alias targets must be concrete fields and attributes.* is a dynamic passthrough object.

Add ECS aliases for OTel semconv attributes with identical
semantics:

  attributes.http.request.body.size  -> http.request.body.bytes
  attributes.http.response.body.size -> http.response.body.bytes
  severity_number                    -> event.severity

The body.size attributes are explicitly mapped as long, since
alias targets must be concrete fields and attributes.* is a
dynamic passthrough object.

Closes elastic/opentelemetry-dev#1354
Closes elastic/opentelemetry-dev#1353
@axw
axw force-pushed the oteldata-ecs-aliases branch from 9e59f43 to 656927b Compare July 1, 2026 09:32
@axw
axw marked this pull request as ready for review July 1, 2026 23:30
@axw
axw requested a review from a team as a code owner July 1, 2026 23:30
@axw axw added the Team:obs-ds-intake-services Meta label for Observability Intake Services team label Jul 1, 2026
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label and removed Team:obs-ds-intake-services Meta label for Observability Intake Services team labels Jul 1, 2026
@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Jul 3, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Hi @axw, I've created a changelog YAML for you.

@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

⏳ Building and deploying preview... View progress

This comment will be updated with preview links when the build is complete.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version.

We use applies_to tags to mark version-specific features and changes.

Expand for a quick overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

@kkrik-es
kkrik-es requested a review from gmarouli July 3, 2026 13:12

@gmarouli gmarouli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@axw
axw merged commit 0af8202 into elastic:main Jul 7, 2026
37 checks passed
burqen pushed a commit to burqen/elasticsearch that referenced this pull request Jul 7, 2026
* [otel-data] Add HTTP body size, severity aliases

Add ECS aliases for OTel semconv attributes with identical
semantics:

  attributes.http.request.body.size  -> http.request.body.bytes
  attributes.http.response.body.size -> http.response.body.bytes
  severity_number                    -> event.severity

The body.size attributes are explicitly mapped as long, since
alias targets must be concrete fields and attributes.* is a
dynamic passthrough object.

Closes elastic/opentelemetry-dev#1354
Closes elastic/opentelemetry-dev#1353

* Update docs/changelog/152622.yaml

---------

Co-authored-by: Felix Barnsteiner <felixbarny@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants