Skip to content

Commit 83e5635

Browse files
chore: remove anonymous id if it is in CI
1 parent 297a3bf commit 83e5635

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const OTEL_URL = 'https://otel.cloud.redocly.com';
1+
export const OTEL_URL = 'http://localhost:4318';
22
export const OTEL_TRACES_URL = process.env.OTEL_TRACES_URL || `${OTEL_URL}/v1/traces`;
33
export const DEFAULT_FETCH_TIMEOUT = 3000;
44
export const ANONYMOUS_ID_CACHE_FILE = 'redocly-cli-anonymous-id';

packages/cli/src/utils/otel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class OtelServerTelemetry {
4747
'cloudevents.event_version': '1.0.0',
4848
'cloudevents.origin': cloudEvent.origin,
4949
'cloudevents.event_origin': cloudEvent.productType,
50-
'cloudevents.event_source_details.id': cloudEvent.sourceDetails?.id ?? 'anonymous',
50+
'cloudevents.event_source_details.id': cloudEvent.sourceDetails?.id ?? '',
5151
'cloudevents.event_source_details.object': cloudEvent.sourceDetails?.object ?? 'anonymous',
5252
'cloudevents.event_source_details.uri': cloudEvent.sourceDetails?.uri ?? '',
5353
'cloudevents.event_data.os_platform': cloudEvent.os_platform,

0 commit comments

Comments
 (0)