SAP / cf-java-logging-support

The Java Logging Support for Cloud Foundry supports the creation of structured log messages and the collection of request metrics
Apache License 2.0
76 stars 46 forks source link

Investigate default Configuration of OpenTelemetry Java Agent, when Binding contains no CLS credentials #180

Closed KarstenSchnitter closed 3 months ago

KarstenSchnitter commented 4 months ago

Let's suppose you are running an application, that is bound to a Cloud Logging service instance, which does not contain OTLP credentials. In that case, the OpenTelemetry Java Agent should be using configuration provided by environment variables and not the default value "localhost:4317". Validate, that this case is actually working.

KarstenSchnitter commented 3 months ago

If the agent extension finds a binding to SAP Cloud Logging, that does not contain OTLP credentials it will report the name of the binding and issue a warning, that the credentials cannot be found. No OTLP configuration is provided to the Java agent. Instead the default values will be used.