Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions actions/instrument/shared/config_validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if [ "${OTEL_TRACES_EXPORTER:-otlp}" != otlp ] && [ "${OTEL_TRACES_EXPORTER:-otl
fi
if [ "$GITHUB_EVENT_NAME" = dynamic ]; then
echo "::notice ::OpenTelemetry for GitHub actions detected a dynamic workflow, which is unable to extract data directly, reconfiguring all otlp exporters for deferred export. This needs the workflow-level instrumentation to forward the data."
[ "${OTEL_LOGS_EXPORTER:-otlp}" != otlp ] || export OTEL_LOGS_EXPORTER=deferred
[ "${OTEL_METRICS_EXPORTER:-otlp}" != otlp ] || export OTEL_METRICS_EXPORTER=deferred
[ "${OTEL_TRACES_EXPORTER:-otlp}" != otlp ] || export OTEL_TRACES_EXPORTER=deferred
[ -n "${OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:-${OTEL_EXPORTER_OTLP_ENDPOINT:-}}" ] || export OTEL_LOGS_EXPORTER=deferred
[ -n "${OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:-${OTEL_EXPORTER_OTLP_ENDPOINT:-}}" ] || export OTEL_METRICS_EXPORTER=deferred
[ -n "${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:-${OTEL_EXPORTER_OTLP_ENDPOINT:-}}" ] || export OTEL_TRACES_EXPORTER=deferred
Comment thread
plengauer marked this conversation as resolved.
fi
if [ -z "${OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:-${OTEL_EXPORTER_OTLP_ENDPOINT:-}}" ] && [ -z "${OTEL_LOGS_EXPORTER:-}" ]; then
export OTEL_LOGS_EXPORTER=none
Expand Down
Loading