From 44b1766abb18c63bbfa5436099e0927df8694ca8 Mon Sep 17 00:00:00 2001 From: jason plumb <75337021+breedx-splk@users.noreply.github.com> Date: Sun, 26 Jan 2025 18:27:57 -0800 Subject: [PATCH] Log deprecation warning when creating SignalFxMeterRegistry (#5824) Signed-off-by: jason plumb <75337021+breedx-splk@users.noreply.github.com> --- .../main/java/io/micrometer/signalfx/SignalFxMeterRegistry.java | 1 + 1 file changed, 1 insertion(+) diff --git a/implementations/micrometer-registry-signalfx/src/main/java/io/micrometer/signalfx/SignalFxMeterRegistry.java b/implementations/micrometer-registry-signalfx/src/main/java/io/micrometer/signalfx/SignalFxMeterRegistry.java index d254f08136..2a4e9ff4ae 100644 --- a/implementations/micrometer-registry-signalfx/src/main/java/io/micrometer/signalfx/SignalFxMeterRegistry.java +++ b/implementations/micrometer-registry-signalfx/src/main/java/io/micrometer/signalfx/SignalFxMeterRegistry.java @@ -80,6 +80,7 @@ public SignalFxMeterRegistry(SignalFxConfig config, Clock clock) { public SignalFxMeterRegistry(SignalFxConfig config, Clock clock, ThreadFactory threadFactory) { super(config, clock); + logger.warn("SignalFxMeterRegistry is deprecated in favor of micrometer-registry-otlp."); this.config = config; URI apiUri = URI.create(config.uri());