Skip to content

Support multi-key fields from SemConv #2333

@gregkalapos

Description

@gregkalapos

Summary

(Not sure if multi-key fields is the right term; if there is a better short name describing it, let's update the title.)

OTel SemConv defines fields which can have multiple keys - examples are:

There are 2 aspects of this:

  1. When the OTel SemConv <-> ECS merge happens, how do such fields get into ECS?
  2. How should the mapping look like for such fields for Elasticsearch?

We discussed this with @felixbarny shortly, regarding point 2:

  • We could use flattened field type
  • We could set enabled to false.
  • In APM we have a field called labels with similar dynamic keys, currently with this mapping:
        {
          "labels": {
            "path_match": "labels.*",
            "match_mapping_type": "string",
            "mapping": {
              "type": "keyword"
            }
          }
        }

Issue with above is that this leads to field explosion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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