Ignore Tracing Http Requests
See original GitHub issueThere is any way to ignore some specific endpoints when using: Google.Cloud.Diagnostics.AspNetCore
? I would like to ignore /health
or /swagger/*
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
How to disable HTTP TRACE/TRACK methods in APACHE
There are two ways to disable HTTP TRACE/TRACK methods in Apache. ... Traditionally you can achieve this using the rewrite rule added to...
Read more >How to intercept/disable HTTP Trace Method in Java ...
My question is how can I make TRACE response as same as the other requests ? Note: The solution in this thread did...
Read more >Support filtering functions to trace/ignore http(s) requests
Current implementation of http plugin allows people to filter out requests that they do not want to trace using either ignoreIncomingPaths ...
Read more >Disable Trace/Track in Apache HTTPD - Techstacks HOWTO's
Simply add the TraceEnable directive into your httpd.conf and set the value to Off. The second mechanism involves creating a mod_rewrite rule that...
Read more >Ignoring Unwanted Resources in APM
The Trace Agent component within the Datadog Agent has two methods to prevent certain traces from coming through: ignoring span tags or ignoring...
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 Free
Top 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
Yes, in
TraceServiceOptions
you can specify theTraceFallbackPredicate
property of typeTraceDecisionPredicate
, which is used to determine whether or not to trace requests which don’t explicitly have a trace header. You’d configure this in theAddGoogleTrace
call (I don’t believe it can be done inUseGoogleDiagnostics
at the moment, although we could look at changing that):Note that the return type is
bool?
to indicate “definitely don’t trace”, “definitely trace”, or “trace if other code thinks it should”. This predicate won’t be called if the request already has a trace ID though - I hope that’s not a problem for you.Let me know if this works out for you.
Hooray - I’m so glad it worked out in the end, and thanks for explaining what was wrong… it’ll help me ask future customers to check their permissions 😃