GithubHelp home page GithubHelp logo

Comments (6)

dd-caleb avatar dd-caleb commented on June 1, 2024 1

It looks like the agent is more restrictive in the format its allowed to receive than what the tracer is producing. I think we can add code to where the tracer sends spans to remove nil strings or set them to the empty string.

To disable automatic instrumentation you have to remove an environment variable. (SET COR_ENABLE_PROFILING=0) We should document this, but we should also provide a way to configure this through the apm section of the datadog agent config yaml. We should also limit the amount we log on errors, since the trace agent being down is entirely possible under normal usage.

@vasiliy0 besides the noise in the logs, did this break the application? Or did IIS continue to work properly?

from dd-trace-dotnet.

vasiliy0 avatar vasiliy0 commented on June 1, 2024

@dd-caleb thank you for quick response. I will try your suggestions to turn off instrumentation.

Regarding the application, it works as intended without breaking. The excessive logging might be the issue though, if someone is using cloud log aggregators with limited number of events allowed.

What can be an ETA on the new version with fixed tracer?

from dd-trace-dotnet.

lucaspimentel avatar lucaspimentel commented on June 1, 2024

Regarding the environment variables, the installer sets these only for the IIS service, not system-wide, otherwise we would attach the profiler to every .NET process in the host. You can find the Environment values in the Windows Registy at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC

Remember also that IIS won't recognize changes to the environment variables until the host is rebooted. Instead of modifying these values by hand, uninstalling the msi will remove the environment variables and delete the files installed into the GAC and Program Files folder.

If you don't have a UI (e.g. Windows Server Core), you can use the following commands from an administrator command prompt:

msiexec.exe /qn /norestart /uninstall DatadogDotNetTracing-0.3.0-x64.msi

If you don't have the msi file handy, use the Product Code:

msiexec.exe /qn /norestart /uninstall {359AD4E1-5CD3-4920-A5BF-2A12DD812D1C}

from dd-trace-dotnet.

vasiliy0 avatar vasiliy0 commented on June 1, 2024

@lucaspimentel thank you for your comment.

Removed tracer and ran iisreset, logging errors stopped. Seems like it is enough for IIS to update environment variables.

from dd-trace-dotnet.

lucaspimentel avatar lucaspimentel commented on June 1, 2024

@vasiliy0: this bug is fixed and will be included in the next beta release. Thanks again for reporting it!

from dd-trace-dotnet.

lucaspimentel avatar lucaspimentel commented on June 1, 2024

@vasiliy0: We released 0.3.1-beta which should fix these errors. Thanks again.

from dd-trace-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.