Skip to content

Commit

Permalink
build: move env vars (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlnf authored Jan 27, 2025
1 parent 6c7561c commit 5152d6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:
GRAFANA_OTLP_ENDPOINT=${{ secrets.grafana_otlp_endpoint }},
GRAFANA_INSTANCE_ID=${{ secrets.grafana_instance_id }},
GRAFANA_API_KEY=${{ secrets.grafana_api_key }}
OTEL_EXPORTER_OTLP_ENDPOINT=${{ secrets.grafana_otlp_endpoint }},
OTEL_EXPORTER_OTLP_HEADERS=Authorization Basic=${{ secrets.GRAFANA_HEADERS }}
secrets: |-
FIREBASE_PRIVATE_KEY_BASE64=${{ secrets.firebase_private_key_base64_gcp_secret_name }}:latest,
flags: --allow-unauthenticated --timeout=1800
Expand Down
3 changes: 0 additions & 3 deletions server/instrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ const environment = process.env.GRAFANA_ENVIRONMENT ?? 'development'
const base64Key = Buffer.from(`${instanceId}:${apiKey}`).toString('base64')
const authorizationHeader = `Basic ${base64Key}`

process.env.OTEL_EXPORTER_OTLP_ENDPOINT = endpoint
process.env.OTEL_EXPORTER_OTLP_HEADERS = authorizationHeader

if (!instrumentationEnabled) {
console.warn('Grafana instrumentation disabled, skipping.')
process.exit(0)
Expand Down

0 comments on commit 5152d6d

Please sign in to comment.