open-telemetry / opentelemetry-dotnet

The OpenTelemetry .NET Client
https://opentelemetry.io
Apache License 2.0
3.21k stars 761 forks source link

[logs] Support OTel Logs Bridge API #4433

Open CodeBlanch opened 1 year ago

CodeBlanch commented 1 year ago

The OpenTelemetry Specification has been updated with some new logging APIs marked stable:

API: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/bridge-api.md SDK: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md

This issue is for tracking the work to implement this in OTel .NET.

Note: This work has been made an experimental feature (see #4735). The APIs will be public in prerelease builds of OpenTelemetry .NET (starting with 1.6.0-alpha.1) but will be internal in stable builds.

Relates to #4014

alrz commented 4 months ago

Is there a PR to add .WithLogging(c => c.AddOtlpExporter());? didn't find it in the list.

cijothomas commented 4 months ago

Is there a PR to add .WithLogging(c => c.AddOtlpExporter());? didn't find it in the list.

It is separate from Bridge itself. See https://github.com/open-telemetry/opentelemetry-dotnet/pull/5648