Switch it on
Add the --otel-traces flag to the pulumi up line in bin/deploy, the script your CI
runs. The next deploy is one trace, with the CLI, the language host and every provider in it.
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
OTEL="https://ingestion.eu.bronto.io"
OTEL+="?x-bronto-api-key=$BRONTO_API_KEY"
OTEL+="&x-bronto-dataset=pulumi"
pulumi up --stack production \
--yes --skip-preview \
--otel-traces "$OTEL"
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
pulumi up --stack production \
--yes --skip-preview \
--otel-traces "http://localhost:4318"
This assumes a Collector listening on localhost:4318; the
Local Collector setup shows how to start one.
This uses the endpoint and auth header you saved in the
setup guide. Pulumi turns query parameters into headers and decodes
them, so jq percent-encodes the header first; a raw +, & or # would change it.
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
OTEL="YOUR_OTLP_ENDPOINT"
OTEL+="?$(jq -rn --arg h 'YOUR_AUTH_HEADER' --arg v 'YOUR_AUTH_VALUE' '"\($h|@uri)=\($v|@uri)"')"
pulumi up --stack production \
--yes --skip-preview \
--otel-traces "$OTEL"