Skip to content

Add OpenTelemetry mappings #104731

@AlexanderWert

Description

@AlexanderWert

To provide first class support for OpenTelemetry, we should work on built-in index templates optimized for OpenTelemetry signals. The goal for these mappings is to be as native to OpenTelemetry/OTLP as possible, even if that means the structure of OTel documents and mappings are different from what they are today.

Yet, we want to provide a compatibility layer so that queries written with ECS and the traditional document structure, where everything is mapped at the top-level of the documents, still work on OTel data to make it possible to gradually migrate to the OTel native data model. See also #104744

Like we did in #97546 for APM, we should create an Elasticsearch plugin that ships index templates and component templates with Elasticsearch. The mappings can be based on #104455.

Let's try to keep the approach similar to apm-data, i.e. minimise the amount of Java code and define templates as YAML like in https://github.com/elastic/elasticsearch/tree/main/x-pack/plugin/apm-data/src/main/resources. We should also have functional tests written as YAML REST tests, like in https://github.com/elastic/elasticsearch/tree/main/x-pack/plugin/apm-data/src/yamlRestTest/resources/rest-api-spec/test.

During development the plugin should be disabled by default, with a setting to enable it. We will enable it by default in serverless QA first to increase confidence, and plan to later enable it by default everywhere.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions