You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would only set "service.name" if it isn't set already. Maybe it would even be a good idea to check for the presence of any of the five fields that we get from Elastic APM, and only set them if none of them are set already. This would avoid a confusing scenario where only some of the ECS fields are from Elastic APM, but not all. What do you think @sethmlarson@basepi?
Uh oh!
There was an error while loading. Please reload this page.
Hi,
If you have an application that adds a key like this to its log:
{"service": {"version": 1.0.0, "name": "myapp", "environment": "dev"}}
Then you end up having
service.name
be set to None and ultimately be deleted from the output, because of this line:ecs-logging-python/ecs_logging/_stdlib.py
Line 227 in 9f35b52
Maybe this should instead set
service.name
to preferelasticapm_service_name
, but fall back toservice.name
if it already exists and isn't None, i.e.:I'm not using Elastic APM and ran into this issue.
The text was updated successfully, but these errors were encountered: