-
Notifications
You must be signed in to change notification settings - Fork 13.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
[FLINK-30284][flink-metrics] Adding datacenter url property to datadog #25592
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,20 +67,20 @@ public DatadogHttpReporter( | |
String proxyHost, | ||
int proxyPort, | ||
int maxMetricsPerRequestValue, | ||
DataCenter dataCenter, | ||
String dataCenterUrl, | ||
String tags, | ||
boolean useLogicalIdentifier) { | ||
this.maxMetricsPerRequestValue = maxMetricsPerRequestValue; | ||
this.useLogicalIdentifier = useLogicalIdentifier; | ||
this.client = new DatadogHttpClient(apiKey, proxyHost, proxyPort, dataCenter, true); | ||
this.client = new DatadogHttpClient(apiKey, proxyHost, proxyPort, dataCenterUrl, true); | ||
this.configTags = getTagsFromConfig(tags); | ||
|
||
LOGGER.info( | ||
"Configured DatadogHttpReporter with {tags={}, proxyHost={}, proxyPort={}, dataCenter={}, maxMetricsPerRequest={}", | ||
"Configured DatadogHttpReporter with {tags={}, proxyHost={}, proxyPort={}, dataCenterUrl={}, maxMetricsPerRequest={}", | ||
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. I was thinking you would keep the original constructor and deprecate it and add a new constructor for the url. I see you have refactored the callers to send through the url. deprecating might be cleaner. WDYT ? The methods should all have @publicEvolving @internal tags as appropriate in all the methods in all the classes |
||
tags, | ||
proxyHost, | ||
proxyPort, | ||
dataCenter, | ||
dataCenterUrl, | ||
maxMetricsPerRequestValue); | ||
} | ||
|
||
|
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 suggest removing the deprecated option from the example below.