Skip to content

Commit

Permalink
Log OpenTelemetry Extension Version Number on StartUp
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
  • Loading branch information
KarstenSchnitter committed Feb 3, 2024
1 parent 87e49a5 commit a45d83b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit a45d83b

Please sign in to comment.