Skip to content

Conversation

@apiarian-datadog
Copy link
Contributor

No description provided.

config.https_proxy.clone(),
Duration::from_secs(config.flush_timeout),
);
let metrics_intake_url_prefix = MetricsIntakeUrlPrefix::new(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels like it should really be part of the config but that doesn't play well with our config parsing process. still, maybe we should be computing this stuff and handling sites and overrides and such in the calling function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this an opportunity to split the config_for_parsing from the config_for_using structs? c.c. @duncanista @alexgallotta

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we maybe don't want to do this here, but in config

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, let's keep it all close in the config/mod.rs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this stage, the code should have a validated and working immutable config struct, ready to be used around/
The only exception would be for config that changes dynamically, but that must be address with a prod/consumer or other async stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, i've pushed it up into main(). will followup on a thread there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this one: #517 (comment) )

otlp_config_receiver_protocols_grpc_endpoint: Option<String>,
// intake urls
url: Option<String>,
dd_url: Option<String>,
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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?

// 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>,
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Contributor

Choose a reason for hiding this comment

The 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.
Worst case, the few who will complain will have a quick fix

@apiarian-datadog apiarian-datadog force-pushed the aleksandr.pasechnik/svls-5992-bottlecap-metrics-intake-url branch from b85f047 to ccba5c7 Compare January 17, 2025 20:04
async fn main() -> Result<()> {
let (aws_config, config) = load_configs();

let site = Site::new(config.site.clone()).map_err(|e| {
Copy link
Contributor Author

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 return aws_config, config, and metrics_intake_url_prefix? or something else?

@astuyve
Copy link
Contributor

astuyve commented Mar 5, 2025

Closing in favor of #585

@astuyve astuyve closed this Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants