BadImageFormatException Using Datadog.Trace 2.28.0 In Nuget Packages
See original GitHub issueDescribe the bug
Using the 2.28.0 release of Datadog.Trace in our private nuget packages is resulting in BadImageFormatException
in those libraries. Our web services don’t reference Datadog.Trace but instead rely on the version in those libraries to keep it consistent. We also use the amd64 package within our containers hosted in Kubernetes in AKS.
To Reproduce
- Upgrade to 2.28.0
- Use trace annotations
- Get an error like
The signature is incorrect. The format of the file '/app/MyCompany.Libraries.Core.dll' is invalid.
in the first method that has aTrace
annotation on it.
Expected behavior No errors.
Runtime environment (please complete the following information):
- Instrumentation mode: NuGet package for apps, tracer in the container installed from: https://github.com/DataDog/dd-trace-dotnet/releases/download/v2.28.0/datadog-dotnet-apm_2.28.0_amd64.deb
- Tracer version: 2.28.0
- OS: Bullseye Slim from https://hub.docker.com/_/microsoft-dotnet-runtime/
- CLR: .NET Core 7
Issue Analytics
- State:
- Created 5 months ago
- Comments:6
Top Results From Across the Web
Datadog.Trace 2.35.0
Trace NuGet package. This package contains the Datadog .NET APM tracer for configuring custom instrumentation. If you are only using automatic instrumentation, ...
Read more >Tracing .NET Framework Applications
Trace NuGet package to your application. In your application code, access the global tracer through the Datadog.Trace.Tracer.Instance property to create new ...
Read more >Untitled
Trace.Bundle NuGet package This package contains the full Datadog . ... Trace 2.26.0 WebDatadog APM traces can be integrated with the logs product...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve just released v2.29.0 of the .NET Tracer to fix this issue, thanks for reporting this @albernhagen !
Thanks a lot for the extra details @albernhagen. Indeed I can now reproduce it. I’ll leave this open while we look into it.