ecs-dotnet
ecs-dotnet copied to clipboard
Elasticsearch.Extensions.Logging should read tracing and service information from Elastic APM Agent
Elasticsearch.Extensions.Logging kinda does its own thing. It does not have the equivalent of Serilog/NLog enrichers that take precedence providing tracing/service information directly from the agent.
Need to look into ExternalScopeProviders in order to expose it without Elasticsearch.Extensions.Logging taking a dependency on the agent:
See: https://github.com/dotnet/runtime/issues/34305
Originally posted by @Mpdreamz in https://github.com/elastic/ecs-dotnet/issues/209#issuecomment-1233432815