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:
- When the OTel SemConv <-> ECS merge happens, how do such fields get into ECS?
- 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.
Summary
(Not sure if
multi-key fieldsis 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:
http.request.header.<key>, this is alreadystabledb.query.parameter.<key>There are 2 aspects of this:
We discussed this with @felixbarny shortly, regarding point 2:
flattenedfield typeenabledto false.labelswith similar dynamic keys, currently with this mapping:Issue with above is that this leads to field explosion.