Skip to content

Commit

Permalink
Fix client telemetry calls
Browse files Browse the repository at this point in the history
  • Loading branch information
toolmantim committed Mar 18, 2024
1 parent 8200f48 commit dddc414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/shared/src/sourcegraph-api/graphql/client.ts
Expand Up @@ -810,7 +810,9 @@ export class SourcegraphGraphQLAPIClient {

// make an anonymous request to the Testing API
private fetchSourcegraphTestingAPI<T>(body: Record<string, any>): Promise<T | Error> {
const url = 'http://localhost:49300/.api/testLogging'
const url = `http://localhost:4930${
process.env.VITEST_POOL_ID ?? process.env.TEST_PARALLEL_INDEX ?? 0
}/.api/testLogging`
const headers = new Headers({
'Content-Type': 'application/json',
})
Expand Down
Expand Up @@ -3,7 +3,9 @@ import type { TelemetryEventInput, TelemetryExporter } from '@sourcegraph/teleme
import { logError } from '../../logger'
import { isError } from '../../utils'

const MOCK_URL = 'http://localhost:49300'
const MOCK_URL = `http://localhost:4930${
process.env.VITEST_POOL_ID ?? process.env.TEST_PARALLEL_INDEX ?? 0
}/`
const ENDPOINT = '/.api/mockEventRecording'

/**
Expand Down

0 comments on commit dddc414

Please sign in to comment.