Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
add env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaylor89 committed Sep 13, 2022
1 parent 44060c1 commit b9e4e41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/web/.env/.env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ REACT_APP_COGNITO_TEMPLATE_ID=flwtmp_eMMe8VQGrKvLCX

REACT_APP_FINGERPRINT_PUBLIC_API_KEY=MNtDQ4NCsNSP7YOkOiQT
REACT_APP_FINGERPRINT_ENDPOINT=https://fp.audius.co

REACT_APP_OTEL_TRACING_ENABLED=true
REACT_APP_OTEL_COLLECTOR_URL=https://opentelemetry-collector.audius.co/v1/traces
5 changes: 4 additions & 1 deletion packages/web/.env/.env.stage
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ REACT_APP_COGNITO_KEY=sandbox_publishable_key_e61e1acfe63bd1760827b68d4f00245b
REACT_APP_COGNITO_TEMPLATE_ID=flwtmp_7ZUYaBUFLeNhJw

REACT_APP_FINGERPRINT_PUBLIC_API_KEY=Rz2A3Y5YGSg9K80VgKPi
REACT_APP_FINGERPRINT_ENDPOINT=https://fp.staging.audius.co
REACT_APP_FINGERPRINT_ENDPOINT=https://fp.staging.audius.co

REACT_APP_OTEL_TRACING_ENABLED=true
REACT_APP_OTEL_COLLECTOR_URL=https://opentelemetry-collector.staging.audius.co/v1/traces
5 changes: 2 additions & 3 deletions packages/web/src/utils/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import { SemanticResourceAttributes as ResourceAttributesSC } from '@opentelemet

const SERVICE_NAME = 'web-client'

const TRACING_ENABLED = true
const OTEL_COLLECTOR_URL =
'https://opentelemetry-collector.staging.audius.co/v1/traces'
const TRACING_ENABLED = process.env.REACT_APP_OTEL_TRACING_ENABLED || false
const OTEL_COLLECTOR_URL = process.env.REACT_APP_OTEL_COLLECTOR_URL || ''

/**
* Initializes a tracer for content node as well as registers instrumentions
Expand Down

0 comments on commit b9e4e41

Please sign in to comment.