From a45d83b944a559c73b4b577b3a0286e4f4c409d7 Mon Sep 17 00:00:00 2001 From: Karsten Schnitter Date: Sat, 3 Feb 2024 20:20:34 +0100 Subject: [PATCH] Log OpenTelemetry Extension Version Number on StartUp Signed-off-by: Karsten Schnitter --- .../ext/CloudLoggingConfigurationCustomizerProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/CloudLoggingConfigurationCustomizerProvider.java b/cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/CloudLoggingConfigurationCustomizerProvider.java index 5052f82..5e00d18 100644 --- a/cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/CloudLoggingConfigurationCustomizerProvider.java +++ b/cf-java-logging-support-opentelemetry-agent-extension/src/main/java/com/sap/hcf/cf/logging/opentelemetry/agent/ext/CloudLoggingConfigurationCustomizerProvider.java @@ -5,12 +5,17 @@ import io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizerProvider; import io.pivotal.cfenv.core.CfEnv; +import java.util.logging.Logger; + public class CloudLoggingConfigurationCustomizerProvider implements AutoConfigurationCustomizerProvider { + private static final Logger LOG = Logger.getLogger(CloudLoggingConfigurationCustomizerProvider.class.getName()); + private static final String VERSION = "3.8.1"; private static final CfEnv cfEnv = new CfEnv(); @Override public void customize(AutoConfigurationCustomizer autoConfiguration) { + LOG.info("Initializing SAP BTP Observability extension " + VERSION); autoConfiguration .addPropertiesSupplier(new CloudLoggingBindingPropertiesSupplier());