-
Notifications
You must be signed in to change notification settings - Fork 16
feat: [SVLS-5992] support DD_URL and DD_DD_URL for metrics intake #517
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,8 +39,6 @@ pub struct FallbackConfig { | |
| otlp_config_receiver_protocols_http_endpoint: Option<String>, | ||
| otlp_config_receiver_protocols_grpc_endpoint: Option<String>, | ||
| // intake urls | ||
| url: Option<String>, | ||
| dd_url: Option<String>, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this the right way to move configs from fallback into a fully supported state? |
||
| logs_config_logs_dd_url: Option<String>, | ||
| // APM, as opposed to logs, does not use the `apm_config` prefix for env vars | ||
| apm_dd_url: Option<String>, | ||
|
|
@@ -107,6 +105,11 @@ pub struct Config { | |
| pub trace_propagation_style_extract: Vec<TracePropagationStyle>, | ||
| pub trace_propagation_extract_first: bool, | ||
| pub trace_propagation_http_baggage_enabled: bool, | ||
| // Intake URLs | ||
| // These two are for metrics intake. The official config is `DD_DD_URL` but `DD_URL` can also | ||
| // be used for backwards compatibility. `DD_DD_URL` takes precedence. | ||
| pub url: Option<String>, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The next-gen extension is already a breaking change, can we just drop this and add it to a breaking change note in the readme?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @astuyve what about customers using old configuration? we just fallback? what's the politics behind this on how we manage a different configuration?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it's somehow ok to remove that deprecated config, I would say to go for it. |
||
| pub dd_url: Option<String>, | ||
| } | ||
|
|
||
| impl Default for Config { | ||
|
|
@@ -142,6 +145,9 @@ impl Default for Config { | |
| trace_propagation_style_extract: vec![], | ||
| trace_propagation_extract_first: false, | ||
| trace_propagation_http_baggage_enabled: false, | ||
| // Intake URLs | ||
| url: None, | ||
| dd_url: None, | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -208,9 +214,7 @@ fn fallback(figment: &Figment, yaml_figment: &Figment) -> Result<(), ConfigError | |
| } | ||
|
|
||
| // Intake URLs | ||
| if config.url.is_some() | ||
| || config.dd_url.is_some() | ||
| || config.logs_config_logs_dd_url.is_some() | ||
| if config.logs_config_logs_dd_url.is_some() | ||
| || config.apm_dd_url.is_some() | ||
| || yaml_config | ||
| .logs_config | ||
|
|
||
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.
@duncanista, @alexgallotta : how would y'all want me to handle this config parsing block? should i push it into
load_configs()and change that to returnaws_config, config, and metrics_intake_url_prefix? or something else?