New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Hostname providers spamming traces #2575
Comments
@adrianlungu The provider that triggers the HTTP request is only activated if the hostname has one of the following prefixes: defaultPrefixes = []string{"ip-", "domu", "ec2amaz-"} How does your hostname look like? Also, how is your service instrumented? |
@darccio from what I can tell, I'm not sure how that applies here. In |
Thanks @adrianlungu, you are right. I'll check it again. |
@adrianlungu I saw my error, As you pointed, we are running these checks unconditionally through The first check in Does this solve your issue? |
The
providerCatalog
has a set of providers that seem to be running regardless of any configuration given to the tracer; this sometimes leads to a behavior where traces are being spammed, as follows, with a call toegress 169.254.169.254
.Ideally this could be configured somehow, or at least have a way to address what to do in case a provider cannot be reached so we can silence it if we don't use some of the specified providers; or maybe make it customizable which provider should be contacted and which not ?
Version of dd-trace-go
v1.60.3
Describe what happened:
The internal hostname providers are being called and leads to a spam of traces with
egress 169.254.169.254
, url beinghttp://169.254.169.254/computeMetadata/v1/instance/hostname
.Describe what you expected:
Not to have these traces sent to datadog.
Steps to reproduce the issue:
N/A - it can be reproduced just by enabling the tracer.
Additional environment details (Version of Go, Operating System, etc.):
The text was updated successfully, but these errors were encountered: