Can't use OtlpExporter in an Alpine docker image #1251
Labels
bug
Something isn't working
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Bug Report
List of NuGet packages and version that you are using:
OpenTelemetry.Exporter.OpenTelemetryProtocol 0.5.0-beta.2
Runtime version:
netcoreapp3.1
Symptom
When I run a .NET Core application in an Alpine-based docker image, and the app calls
I get an exception because GRPC is missing a native dependency. It seems to be looking for a glibc library instead of the musl equivalent.
What is the expected behavior?
The opentelemetry-dotnet libraries should work in an Alpine-based docker image (ideally in the dotnet/core Alpine image). I'd like to instrument the .NET code my team ships as docker images.
Reproduce
otlp-exporter-sample.csproj
:Program.cs
:Dockerfile
:Save the above three files in a directory,
cd
to that directory, and run the following commands to reproduce the bug:dotnet publish -c Release docker build -t otlp-exporter-sample -f Dockerfile . docker run -it --rm otlp-exporter-sample
The text was updated successfully, but these errors were encountered: