elastic / elastic-otel-dotnet

Elastic OpenTelemetry .NET Distribution
Apache License 2.0
18 stars 2 forks source link

APM libraries and this library #88

Open juliankock opened 4 months ago

juliankock commented 4 months ago

Hey Elastic!

Thanks for bridging the gap between OpenTelemetry and the native features of ElasticSearch telemetry.

I stumbled upon this repository, and I have been battling a lot with how to configure apps correctly.

Currently, we use Serilog, with the EcsTextFormatter and the APM Serilog enricher with the Serilog console sink in our k8s pods, which gets picked up by a Filebeat scraping the stdout of the containers and with manual instrumentation of APM.

All of our application code currently uses the MEL ILogger<T>, with Serilog behind the scenes, and we also use message templates across our solutions.

I was wondering, since I don't seem like I can find any example that shows this. How do these APM libraries, and this library, cooperate? Is it either this, or the APM library?

I look forward to hearing from you.

Mpdreamz commented 4 months ago

Hey @juliankock thanks for opening this conversation.

We'll continue to support the Elastic.Ingest.* and Elastic.CommonSchema.* libraries.

They remain super useful for logging to file and having filebeat/Elastic Agent pick them up. Or when you want to write data directly to Elasticsearch.

With OTLP logs ECS and Semantic Conventions are merging and so we'll continue to ensure structured logging is a first class citizen in this setup as well.

Most likely the APM correlation libraries as part of ecs-dotnet will be deprecated in the long run though.