gcr.io/paketo-buildpacks/opentelemetry
The Paketo Buildpack for OpenTelemetry is a Cloud Native Buildpack that contributes and configures the OpenTelemetry Agent.
This buildpack will participate if all the following conditions are met
$BP_OPENTELEMETRY_ENABLED
is set to a truthy value (i.e. true
, t
, 1
ignoring case)At build time, the buildpack will do the following for Java applications:
$JAVA_TOOL_OPTIONS
to use it.OTEL_JAVAAGENT_ENABLED=false
).OTEL_LOGS_EXPORTER=none
).OTEL_METRICS_EXPORTER=none
).At run time, the buildpack will do the following for Java applications:
type
of opentelemetry
exists, it uses the config tree from the binding to configure the OpenTelemetry Java agent. This is recommended when the configuration involves secrets of any kind.Once you enable the OpenTelemetry buildpack at build-time, you can configure it at run-time via environment variables, as described in the project documentation or by passing configuration properties to the container via a binding.
By default, the following configuration is applied to the OpenTelemetry Java Agent at run time.
OTEL_JAVAAGENT_ENABLED=false
OTEL_LOGS_EXPORTER=none
OTEL_METRICS_EXPORTER=none
When using a binding, key/values map directly to OpenTelemetry Java agent configuration properties. Keys can follow the environment variable format or the system property format, as described in the project documentation.
The buildpack optionally accepts the following bindings:
opentelemetry
Key | Value | Description |
---|---|---|
<otel-property-key> |
<otel-property-value> |
Binding key/values map directly to OpenTelemetry Java agent configuration properties. Keys can follow the environment variable format or the system property format, as described in the project documentation. |
dependency-mapping
Key | Value | Description |
---|---|---|
<dependency-digest> |
<uri> |
If needed, the buildpack will fetch the dependency with digest <dependency-digest> from <uri> |
This buildpack is released under version 2.0 of the Apache License.