Skip to content

Commit

Permalink
Staging telemetry hostname (#3102)
Browse files Browse the repository at this point in the history
* Use custom domain for staging OpenTelemetry

* Use custom domain for staging OpenTelemetry
  • Loading branch information
mars authored Dec 3, 2024
1 parent 6686f76 commit bf40d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/global_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const provider = new NodeTracerProvider({
const headers = {Authorization: `Bearer ${process.env.IS_HEROKU_TEST_ENV !== 'true' ? getToken() : ''}`}

const exporter = new OTLPTraceExporter({
url: isDev ? 'https://backboard-staging.herokuapp.com/otel/v1/traces' : 'https://backboard.heroku.com/otel/v1/traces',
url: isDev ? 'https://backboard.staging.herokudev.com/otel/v1/traces' : 'https://backboard.heroku.com/otel/v1/traces',
headers,
compression: 'none',
})
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/unit/global_telemetry.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('telemetry', function () {
const mockTelemetry = telemetry.setupTelemetry(mockConfig, mockOpts)
telemetry.initializeInstrumentation()

const honeycombAPI = nock(`${isDev ? 'https://backboard-staging.herokuapp.com/otel' : 'https://backboard.heroku.com/otel'}`)
const honeycombAPI = nock(`${isDev ? 'https://backboard.staging.herokudev.com/otel' : 'https://backboard.heroku.com/otel'}`)
.post('/v1/traces', identity)
.reply(200)

Expand Down

0 comments on commit bf40d5d

Please sign in to comment.