We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4c32e commit af28d08Copy full SHA for af28d08
1 file changed
lib/shared.bash
@@ -300,6 +300,12 @@ function run_docker_compose() {
300
export TRACEPARENT="$BUILDKITE_TRACING_TRACEPARENT"
301
fi
302
303
+ # Set OTEL_SERVICE_NAME to match the agent's service name so docker-compose
304
+ # spans appear under buildkite-agent service instead of separate "compose" service
305
+ if [[ -z "${OTEL_SERVICE_NAME:-}" ]] && [[ -n "${BUILDKITE_TRACING_SERVICE_NAME:-}" ]]; then
306
+ export OTEL_SERVICE_NAME="$BUILDKITE_TRACING_SERVICE_NAME"
307
+ fi
308
+
309
if [[ "$disable_otel_config" == "true" ]]; then
310
echo "~~~ :no_entry_sign: Disabling docker-compose OTEL traces"
311
0 commit comments