Skip to content

Merge OTLP geo attributes for traces and logs#147802

Merged
felixbarny merged 3 commits into
elastic:mainfrom
felixbarny:otlp-geo-location
Apr 30, 2026
Merged

Merge OTLP geo attributes for traces and logs#147802
felixbarny merged 3 commits into
elastic:mainfrom
felixbarny:otlp-geo-location

Conversation

@felixbarny
Copy link
Copy Markdown
Member

Summary

  • Merge paired OTLP *.geo.location.lon and *.geo.location.lat attributes into [lon, lat] geo-point values for logs, spans, span links, and span events.
  • Keep metrics on the default attribute path and document why geo merging is skipped there.
  • Add focused unit coverage for the merge rules plus minimal signal-level and REST mapping coverage.

Test plan

  • ./gradlew :x-pack:plugin:otel-data:spotlessJavaCheck
  • ./gradlew :x-pack:plugin:otel-data:test --tests org.elasticsearch.xpack.oteldata.otlp.docbuilder.OTelDocumentBuilderTests --tests org.elasticsearch.xpack.oteldata.otlp.docbuilder.LogDocumentBuilderTests --tests org.elasticsearch.xpack.oteldata.otlp.docbuilder.SpanDocumentBuilderTests --tests org.elasticsearch.xpack.oteldata.otlp.docbuilder.SpanEventDocumentBuilderTests
  • ./gradlew :x-pack:plugin:otel-data:javaRestTest --tests org.elasticsearch.xpack.oteldata.otlp.OTLPLogsIndexingRestIT --tests org.elasticsearch.xpack.oteldata.otlp.OTLPTracesIndexingRestIT

@felixbarny felixbarny requested a review from a team as a code owner April 29, 2026 09:16
@felixbarny felixbarny self-assigned this Apr 29, 2026
@felixbarny felixbarny requested a review from axw April 29, 2026 09:17
@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team Team:StorageEngine labels Apr 29, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@felixbarny felixbarny enabled auto-merge (squash) April 30, 2026 06:54
@felixbarny felixbarny merged commit f574cee into elastic:main Apr 30, 2026
37 checks passed
@felixbarny felixbarny deleted the otlp-geo-location branch April 30, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/Logs You know, for Logs Team:StorageEngine v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants