Comments (6)
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.
@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.
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.
@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.
@vasiliy0: this bug is fixed and will be included in the next beta release. Thanks again for reporting it!
from dd-trace-dotnet.
@vasiliy0: We released 0.3.1-beta which should fix these errors. Thanks again.
from dd-trace-dotnet.
Related Issues (20)
- DataDog tracer detects incorrect .NET 6 Runtime version HOT 2
- Sporadic TypeLoadException HOT 4
- 502 error on POST
- MQ integration prepends BOM to message body HOT 4
- Bundled Tracer fails to load with .NET 8 and COMPlus_EnableDiagnostics=0 HOT 11
- System.NullReferenceException in RedisExecuteAsyncIntegration.OnMethodBegin(RedisBase , Message& , ResultProcessor`1& , ServerEndPoint& ) HOT 2
- Support `Microsoft.Azure.WebJobs.Extensions.Kafka.KafkaTrigger` in Azure Functions
- Understand correct approach to encapsulating the `dd-trace-dotnet` sdk HOT 2
- Instrument Quartz.Net HOT 1
- Auto-instrumentation for Blazor HOT 4
- Support Span LInks HOT 3
- Tracer agent stops reporting APM data HOT 2
- OpSysTools::IsSafeToStartProfiler always returns false HOT 2
- CosmosDB autoinstumentation of addtional container methods
- Image "gcr.io/datadoghq/dd-lib-dotnet-init:latest" NotFound desc = failed to pull and unpack image "gcr.io/datadoghq/dd-lib-dotnet-init:latest": no match for platform in manifest: not found HOT 5
- Problem with Azure ServiceBus distributed trace HOT 4
- Tracer logs are written to disk instead of stdout/stderr in kubernetes
- dd-trace CLI does not respect the DD_CIVISIBILITY_CODE_COVERAGE_ENABLED env variable HOT 1
- Using native tracer on .NET 6+ app significantly impacts performance and scalability of Azure Function Isolated Worker w/ ASP.net Core Integration
- Optimise dependencies HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-dotnet.