Skip to content

Commit d558c1b

Browse files
committed
formatting, linting
1 parent b1f4ccf commit d558c1b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/opentelemetry/src/propagator.ts

-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { propagation, trace } from '@opentelemetry/api';
55
import { W3CBaggagePropagator, isTracingSuppressed } from '@opentelemetry/core';
66
import { ATTR_URL_FULL, SEMATTRS_HTTP_URL } from '@opentelemetry/semantic-conventions';
77
import type { continueTrace } from '@sentry/core';
8-
import { hasTracingEnabled } from '@sentry/core';
98
import { getRootSpan } from '@sentry/core';
109
import { spanToJSON } from '@sentry/core';
1110
import {
@@ -93,8 +92,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
9392
const activeSpan = trace.getSpan(context);
9493
const url = activeSpan && getCurrentURL(activeSpan);
9594

96-
console.log('1', { activeSpan, url });
97-
9895
const tracePropagationTargets = getClient()?.getOptions()?.tracePropagationTargets;
9996
if (
10097
typeof url === 'string' &&
@@ -106,7 +103,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
106103
'[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:',
107104
url,
108105
);
109-
console.log('2', { tracePropagationTargets });
110106
return;
111107
}
112108

@@ -115,7 +111,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
115111

116112
const { dynamicSamplingContext, traceId, spanId, sampled } = getInjectionData(context);
117113

118-
console.log('3', { existingBaggageHeader, baggage, dynamicSamplingContext, traceId, spanId, sampled });
119114
if (existingBaggageHeader) {
120115
const baggageEntries = parseBaggageHeader(existingBaggageHeader);
121116

@@ -124,7 +119,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
124119
baggage = baggage.setEntry(key, { value });
125120
});
126121
}
127-
console.log('4', { baggageEntries, baggage });
128122
}
129123

130124
if (dynamicSamplingContext) {
@@ -134,17 +128,14 @@ export class SentryPropagator extends W3CBaggagePropagator {
134128
}
135129
return b;
136130
}, baggage);
137-
console.log('5', { dynamicSamplingContext, baggage });
138131
}
139132

140133
// We also want to avoid setting the default OTEL trace ID, if we get that for whatever reason
141134
if (traceId && traceId !== INVALID_TRACEID) {
142135
setter.set(carrier, SENTRY_TRACE_HEADER, generateSentryTraceHeader(traceId, spanId, sampled));
143-
console.log('6', { carrier, traceId, spanId, sampled });
144136
}
145137

146138
super.inject(propagation.setBaggage(context, baggage), carrier, setter);
147-
console.log('7', { carrier });
148139
}
149140

150141
/**

0 commit comments

Comments
 (0)