[logs] Support OTel Logs Bridge API
CodeBlanch opened this issue · 2 comments
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.
- OpenTelemetry.Api updates
- OpenTelemetry.Api.ProviderBuilderExtensions updates (DI surface)
- OpenTelemetry (SDK) updates
- Define IServiceCollection builder: #4441
- Define BatchExportLogRecordProcessorOptions: #4446
- Define sdk builder: #4447
- Define builder extensions: #4450
- Define provider extensions: #4480
- Define LoggerProviderSdk: #4453
- Define LoggerSdk: #4455
- LogRecord updates: #4456
- Unit test: #4462
- Update BatchExportLogRecordProcessorOptions for spec stable: #4463
- Define Sdk.CreateLoggerProviderBuilder: #4464
- Add tests for sdk builder extensions & provider: #4467
- Update ILoggerProvider to use OTel LoggerProvider: #4473
- Expose implementation publicly: #4568
- Instrumentation scope version fix: #4635
- OpenTelemetry.Extensions.Hosting updates
- OpenTelemetry.Exporter.InMemory updates
- OpenTelemetry.Exporter.Console updates
- OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs updates
- Before marking stable future open/follow-up items:
- LogRecord.Severity nullable: #4456 (comment)
- Discuss obsoletions:
OpenTelemetryLoggerOptions.AddProcessor
&OpenTelemetryLoggerOptions.SetResourceBuilder
- InMemoryExporter, ConsoleExporter, & OtlpExporter
OpenTelemetryLoggerOptions
registration extensions
- Remove added
InternalsVisibleTo
- Documentation updates
- Example updates
- Public API review
Relates to #4014
Is there a PR to add .WithLogging(c => c.AddOtlpExporter());
? didn't find it in the list.
Is there a PR to add
.WithLogging(c => c.AddOtlpExporter());
? didn't find it in the list.
It is separate from Bridge itself. See #5648