Skip to content

Commit eeaebfe

Browse files
committed
Add debugging
1 parent a430d56 commit eeaebfe

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

hooks/command

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
set -ueo pipefail
33

4+
echo "DEBUG [command]: TRACEPARENT at hook start: ${TRACEPARENT:-NOT SET}"
5+
echo "DEBUG [command]: BUILDKITE_TRACING_BACKEND: ${BUILDKITE_TRACING_BACKEND:-NOT SET}"
6+
echo "DEBUG [command]: BUILDKITE_TRACE_CONTEXT: ${BUILDKITE_TRACE_CONTEXT:-NOT SET}"
7+
echo "DEBUG [command]: All OTEL/TRACE/BUILDKITE_TRACING vars:"
8+
env | grep -E "(OTEL|TRACE|BUILDKITE_TRACING)" || echo " (none)"
9+
410
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
511

612
# shellcheck source=lib/shared.bash

hooks/pre-command

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22
set -ueo pipefail
33

4+
echo "DEBUG [pre-command]: TRACEPARENT at hook start: ${TRACEPARENT:-NOT SET}"
5+
echo "DEBUG [pre-command]: OTEL vars at hook start:"
6+
env | grep -E "(OTEL|TRACE)" || echo " (none)"
7+
48
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
59

610
# shellcheck source=lib/shared.bash

0 commit comments

Comments
 (0)