Google.Protobuf 3.15.0 breaks the Otlp Exporter #1854
Labels
area:exporter:otlp
OpenTelemetry Protocol (OTLP) Exporter
bug
Something isn't working
help wanted
Good for taking. Extra help will be provided by maintainers
Bug Report
A bug report is not really the right way to report this one, this is more a heads up I guess if this ever manifests when updating the dependencies.
List of NuGet packages and
version that you are using (e.g.
OpenTelemetry 0.4.0-beta.2
):<PackageReference Include="OpenTelemetry" Version="1.0.1" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.0.1" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.0.1" />
Runtime version:
net5.0
Symptom
A clear and concise description of what the bug is.
Upgrading Google.Protobuf 3.14.0 -> 3.15.0 breaks the Otlp (Batch?) Exporter.
What is the expected behavior?
No exception. (So it finds the ByteString constructor)
What is the actual behavior?
The application crashes with this exception.
Reproduce
Update your application to Google.Protobuf 3.15.0 (local to the project)
Additional Context
The new Google.Protobuf 3.15.0 package changed the ByteString type thus breaking compat with this package it seems.
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ActivityExtensions.cs#L346 (here)
protocolbuffers/protobuf#7645
According to that PR's discussion, it seems they have now added a public API to replace the private API this project is using.
The text was updated successfully, but these errors were encountered: