# Pulumi can trace every deploy # Observability on Board — episode 15 # docs: https://www.pulumi.com/docs/iac/cli/commands/pulumi_up/ # page: https://observability-on-board.vercel.app/episodes/pulumi/ # video: https://youtube.com/shorts/45ZvrwXWui4 # # variants: ?ship=bronto|collector|custom ®ion=us &dataset= # ?endpoint=&header=&value= (custom target) # 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. # ── Bronto ────────────────────────────────── #!/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" # ── Local Collector ─────────────────────────────── #!/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 (https://observability-on-board.vercel.app/setup/#collector) shows how to start one. # ── Your endpoint ────────────────────────────────── # This uses the endpoint and auth header you saved in the # setup guide (https://observability-on-board.vercel.app/setup/#custom). 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"