Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry Specification compliance #86

Closed
pellared opened this issue May 17, 2023 · 4 comments
Closed

OpenTelemetry Specification compliance #86

pellared opened this issue May 17, 2023 · 4 comments

Comments

@pellared
Copy link

pellared commented May 17, 2023

The approach of integrating Serilog with OpenTelemetry Logs is NOT compliant with OpenTelemetry specification.

The OpenTelemtry SDK should accept a logger provider via Bridge API which is not done yet (see: open-telemetry/opentelemetry-dotnet#4433)

As far as I understand correctly, the Serilog Sink ("log appender" in OpenTelemetry specification) would only have to depend on OpenTelemetry.Api NuGet package.

Maybe the fact that the design is not OpenTelemetry Specification compliant could be mentioned in the docs?

Originally posted by @pellared in #73 (comment)

@nblumhardt
Copy link
Member

The sink's aiming for compliance with the OpenTelemetry protocol. I'll call that out in the README 👍

@nblumhardt
Copy link
Member

The sink aims for full compliance with the OpenTelemetry Logs protocol. It
does not depend on the OpenTelemetry SDK or .NET API.

Thanks!

@pellared
Copy link
Author

That works fine and hopefully decreases potential confusion. In future, there could be a separate Sink/adapter that would work with OpenTelemtry Logs Bridge API.

@nblumhardt
Copy link
Member

Definitely! This is what OpenTelemetry.Extensions.Serilog does, I think, so hopefully that will be the solid solution for those looking for integration into the SDK 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants