barryib commented on code in PR #27432:
URL: https://github.com/apache/flink/pull/27432#discussion_r2716263769
##########
flink-metrics/flink-metrics-datadog/src/main/java/org/apache/flink/metrics/datadog/DatadogHttpReporterFactory.java:
##########
@@ -65,4 +66,25 @@ public MetricReporter createMetricReporter(Properties
config) {
tags,
useLogicalIdentifier);
}
+
+ /**
+ * Retrieves the Datadog API key from configuration or environment
variable.
+ *
+ * <p>The API key is resolved in the following order:
+ *
+ * <ol>
+ * <li>Configuration property "apikey"
+ * <li>Environment variable "DATADOG_API_KEY"
+ * </ol>
+ *
+ * @param config the configuration properties
+ * @return the Datadog API key, or null if not found in either location
+ */
+ private String getApiKey(Properties config) {
Review Comment:
I did apply you reco.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]