-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Create pkg/datadog module #35067
Create pkg/datadog module #35067
Conversation
Can you fix the merge conflict? |
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
pkg/datadog/config/config.go
Outdated
// AddWarning appends to warnings in the configuration. | ||
func (c *Config) AddWarning(warning error) { | ||
c.warnings = append(c.warnings, warning) | ||
} |
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.
Do we need to make this method public? I want to keep as much of this 'hack' to log warnings private
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.
removed
pkg/datadog/config/host.go
Outdated
// SourceTimeout is the timeout to fetch from each provider - for example AWS IMDS. | ||
// If unset, or set to zero duration, there will be no timeout applied. | ||
// Default is no timeout. | ||
SourceTimeout time.Duration `mapstructure:"source_timeout"` |
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 are making this public, can we still keep it private somehow? If not, I would like to
- Document this in our examples
- Add a release note
- Make sure this is properly designed and validated so users can't misuse 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.
Made it private with set & getter methods
Needs |
Still need to fix the mod versions: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10818431257/job/30014098376?pr=35067 |
@songy23 fixed. |
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> The PR creates `pkg/datadog` package with configuration for DD Exporter and DD connector. The PR currently retains tests in `exporter/datadogexporter` & `connector/datadogconnector` . These will be remove along with the configuration in exporter & connector. --------- Co-authored-by: Yang Song <songy23@users.noreply.github.com>
Description:
The PR creates
pkg/datadog
package with configuration for DD Exporter and DD connector.The PR currently retains tests in
exporter/datadogexporter
&connector/datadogconnector
. These will be remove along with the configuration in exporter & connector.