-
Notifications
You must be signed in to change notification settings - Fork 39
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
Bypass FQDN resolution in darwin tests #1296
Conversation
Signed-off-by: Christian Kruse <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -986,10 +986,13 @@ func addClientCredentials(req *http.Request, credentials accessCredentials) { | |||
req.Header.Add("Authorization", authHeaderValue) | |||
} | |||
|
|||
// TODO(ck): hostname allows the darwin tests to bypass fqdn. | |||
var hostname = fqdn.FqdnHostname | |||
|
|||
// getHostname returns the host name consistently with the resource detection processor's defaults | |||
// TODO: try to dynamically extract this from the resource processor in the pipeline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to do what this comment says? i.e extract the hostname from the resource processor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I'd be surprised if extensions had a way to get processor state like that. I also doubt that'd be a productive way to go at least as far as tests are concerned. (i.e. setting up an entire pipeline with the resource detection processor configured to not use os instead of dns.)
Side note, I wager that processor has the same issue (when configured with dns)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that solution would assume that we'd be using the resource processor in the pipeline like below.
service:
extensions:
- sumologic
pipelines:
logs:
receivers:
- tcplog
processors:
- resource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rnishtala-sumo you okay with kicking this can down the road? Maybe noting that option in #1295
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes thats fine
Adds a hack to work around issue #1295