datalust / seq-tickets

Issues, design discussions and feature roadmap for the Seq log server
https://datalust.co/seq
97 stars 5 forks source link

Please accept a unified OTLP endpoint for logs, traces, metrics #2206

Closed alrz closed 5 months ago

alrz commented 5 months ago

There's a extension method to export OTLP for logs, traces and metrics:

      builder.Services.AddOpenTelemetry()
            .UseOtlpExporter(OtlpExportProtocol.Grpc, new Uri("http://endpoint"))
            .ConfigureResource(...)
            .WithMetrics(...)
            .WithTracing(...);

But as of now seq require a distinct endpoint for logs and traces (and probably metrics in the future). This complicates the setup since each endpoint must be configured separately. It would be nice to support a unified endpoint so that the above code would be sufficient to cover all three.

liammclennan commented 5 months ago

Hi @alrz ,

Seq follows the OTEL standard. When using gRPC (as in your example) logs and traces use the same endpoint. When using HTTP/protobuf then endpoints are /ingest/otlp/v1/logs and /ingest/otlp/v1/traces.