-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/Datadogexporter] Use Agent modules for validating hostname #34030
Merged
mx-psi
merged 8 commits into
open-telemetry:main
from
dineshg13:dinesh.gurumurthy/use-host-validate-module
Jul 12, 2024
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b22f8ec
Use Agent modules for validating hostname
dineshg13 20106a9
PR feedback + fix test
dineshg13 287e30c
fix tests + lint
dineshg13 66fc4d6
remove defer flush
dineshg13 24c4195
merge main
dineshg13 e413095
Merge branch 'main' into dinesh.gurumurthy/use-host-validate-module
dineshg13 ea5ba3d
Merge remote-tracking branch 'origin/main' into dinesh.gurumurthy/use…
dineshg13 066b5a6
add link to the issue
dineshg13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
exporter/datadogexporter/internal/hostmetadata/valid/package_test.go
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
exporter/datadogexporter/internal/hostmetadata/valid/valid.go
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
exporter/datadogexporter/internal/hostmetadata/valid/valid_test.go
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What is this? Can you add a tracking issue?
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.
Agent module is logging error here https://github.com/DataDog/datadog-agent/blob/78ca7aad3407f9202fc0ae3f81623907a9e32691/pkg/util/hostname/validate/validate.go#L40
I don't see a need to track it.
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.
@crobert-1 Could you help us with the best way to deal with this? (e.g. is there a template for tracking issues?)
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.
We aim to have no leaks at all in the Collector, this should be tracked and eventually fixed in the Agent.
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.
Created internal jira to track this work in Agent.
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.
Please add frequency and information to this issue: cihub/seelog#182
Also, please add a reference in this file to that issue so that we have future context for why this ignore is necessary.
Since this goroutine is started during a dependency's
init()
, there's nothing we can do if we need to import the package that depends on it. It's okay to ignore for now.