elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.12k forks source link

[EEM] Inconsistent return type for service fields #188820

Open kpatticha opened 1 month ago

kpatticha commented 1 month ago

When the value is not present, it returns an empty array

"service": {
  "environment": [],
    "name": "without-env-2",
    "namespace": [],
    "runtime": {
      "name": [],
      "version": []
    },
    "language": {
      "name": []
    },
    "version": []
},

when it's present it returns a string

"service": {
  "environment": "Synthtrace: simple_trace",
  "name": "synth-node-2",
  "namespace": [],
  "runtime": {
    "name": [],
    "version": []
  },
  "language": {
    "name": []
  },
  "version": []
},

related

https://github.com/elastic/kibana/blob/b3f9721f8ed505f8f40d7c6addc4b7e913d3d387/x-pack/plugins/observability_solution/apm/server/routes/entities/get_entities.ts#L76-L78

elasticmachine commented 1 month ago

Pinging @elastic/obs-knowledge-team (Team:obs-knowledge)

klacabane commented 1 month ago

looks like duplicate of https://github.com/elastic/elastic-entity-model/issues/118