Skip to content

Commit a430d56

Browse files
committed
Update shared.bash
1 parent 0415129 commit a430d56

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

lib/shared.bash

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,15 @@ function run_docker_compose() {
298298
echo "~~~ :no_entry_sign: Disabling docker-compose OTEL traces"
299299
echo "DEBUG: TRACEPARENT: ${TRACEPARENT:-NOT SET}"
300300

301-
env -u TRACEPARENT \
302-
-u TRACESTATE \
303-
-u OTEL_EXPORTER_OTLP_ENDPOINT \
304-
-u OTEL_EXPORTER_OTLP_TRACES_ENDPOINT \
305-
OTEL_SDK_DISABLED=true \
306-
OTEL_TRACES_EXPORTER=none \
307-
plugin_prompt_and_run "${command[@]}" "$@"
301+
(
302+
unset TRACEPARENT
303+
unset TRACESTATE
304+
unset OTEL_EXPORTER_OTLP_ENDPOINT
305+
unset OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
306+
export OTEL_SDK_DISABLED=true
307+
export OTEL_TRACES_EXPORTER=none
308+
plugin_prompt_and_run "${command[@]}" "$@"
309+
)
308310
else
309311
plugin_prompt_and_run "${command[@]}" "$@"
310312
fi

0 commit comments

Comments
 (0)