Skip to content

Commit 5dc0175

Browse files
committed
Adding disable host otel tracing
1 parent bc90138 commit 5dc0175

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/shared.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ function plugin_read_config() {
4141
echo "${!var:-$default}"
4242
}
4343

44+
# Disable OTEL tracing for host-side commands
45+
if [[ "$(plugin_read_config DISABLE_HOST_OTEL_TRACING "false")" == "true" ]] ; then
46+
export OTEL_SDK_DISABLED=true
47+
fi
48+
4449
# Reads either a value or a list from plugin config
4550
function plugin_read_list() {
4651
prefix_read_list "BUILDKITE_PLUGIN_DOCKER_COMPOSE_$1"

0 commit comments

Comments
 (0)