dd-trace-dotnet icon indicating copy to clipboard operation
dd-trace-dotnet copied to clipboard

Datadog 2.6.0 doesn't have backward compatibility ?

Open sravangontla opened this issue 3 years ago • 1 comments

Describe the bug It throws an error after using latest version of Nuget package in our .Net core Application.

we are using .Net Core 3 WebAPI Angular 8

To Reproduce Steps to reproduce the behavior:

  1. Download latest version from Nuget
  2. Change the trace setting as per new syntax using Tracer.Configure method
  3. Build the application
  4. Deploy the application in IIS and browse the application.
  5. See error "Method not found Datadog.Trace.Vendors.Statsdclient.IDogstatsd"

Expected behavior No error.

Screenshots If applicable, add screenshots to help explain your problem. image

  • Instrumentation mode: [manual with NuGet package]
  • Tracer version: [e.g. 1.28.7]
  • OS: [e.g. Windows Server 2019 ]
  • CLR: [ .NET Core 3.1]

sravangontla avatar Apr 21 '22 15:04 sravangontla

Hi @sravangontla,

This error is typically a symptom of when you are using both the installer and the NuGet, and you have used different version numbers in each. The fact you are seeing Method not found indicates a very old version of Datadog.Trace.

If you have updated both your installer and NuGet to 2.x versions, then it's technically possible to have mis-matched version numbers. However this has a small performance penalty, so we recommend always keeping your version numbers in-sync.

andrewlock avatar Apr 22 '22 14:04 andrewlock

Closing as state since we got no reply or additional information from OP. If you need further assistance, please contact [email protected]. Thanks!

lucaspimentel avatar Aug 24 '22 20:08 lucaspimentel