Comments (6)
I went back and looked at the documentation and see you have listed support for version 6.0+ of NEST / Elasticsearch.Net. I was expecting to just not get elastic search tracing since I was using 5.x....instead of having it cause every request to throw a cast exception because my library is a bit older....
Really feel like the appropriate action is to detect incompatibility and disable tracing.
from dd-trace-dotnet.
Hey, @odyth. Disabling tracing automatically when we detect incompatible libraries is on our roadmap. We will also add support for tracing NEST
5.x sometime after the 1.0 release.
In the meantime, you can disable tracing for Elasticsearch manually by adding the following environment variable:
DD_DISABLED_INTEGRATIONS=ElasticsearchNet
from dd-trace-dotnet.
Ok thanks for the update. I had one more issue with the tracer that I am having a hard time explaining. One of my API calls gets 100% error rate in datadog and the stack trace when you look at the trace in datadog is below. The only thing that is different about this call is the content would be null (it's a mock endpoint for the moment). The method returns a HttpResponseMessage and the content would be null with a status code of 204 no content.
at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectAction(HttpControllerContext controllerContext)
at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)
at Datadog.Trace.ClrProfiler.Integrations.AspNetWebApi2Integration.<ExecuteAsyncInternal>d__2.MoveNext()
from dd-trace-dotnet.
@odyth: can you create a separate issue in github to track that Web API error? We can keep this one open to track the fix for NEST
5.x.
from dd-trace-dotnet.
We are adding stricter validation of instrumented assemblies to resolve this issue. PRs #338, #339, and #341 make it so we only instrument Elasticsearch.Net
6.x, so the exception with 5.x no longer happens.
PR #348 adds support for instrumenting Elasticsearch.Net
5.x as a separate integration.
These changes will be included in release 1.2.
from dd-trace-dotnet.
Release 1.2 is out and adds support for Elasticsearch.Net
5.3.0-5.6.6, so we now support 5.3+
from dd-trace-dotnet.
Related Issues (20)
- 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 5
- 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
- AspNetCore OutputCacheMiddleware throws NullReferenceException from BlockingMIddleware HOT 3
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.