Skip to content

Commit 2709c87

Browse files
authored
Merge pull request #2 from flashcatcloud/feat/trace-type
feat: remove dd trace type
2 parents ac1bc86 + 880ad0b commit 2709c87

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

packages/rum-core/src/domain/configuration/configuration.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import type { Configuration, InitConfiguration, MatchOption, RawTelemetryConfiguration } from '@flashcatcloud/browser-core'
1+
import type {
2+
Configuration,
3+
InitConfiguration,
4+
MatchOption,
5+
RawTelemetryConfiguration,
6+
} from '@flashcatcloud/browser-core'
27
import {
38
getType,
49
isMatchOption,
@@ -17,7 +22,7 @@ import type { RumPlugin } from '../plugins'
1722
import { isTracingOption } from '../tracing/tracer'
1823
import type { PropagatorType, TracingOption } from '../tracing/tracer.types'
1924

20-
export const DEFAULT_PROPAGATOR_TYPES: PropagatorType[] = ['tracecontext', 'datadog']
25+
export const DEFAULT_PROPAGATOR_TYPES: PropagatorType[] = ['tracecontext']
2126

2227
export interface RumInitConfiguration extends InitConfiguration {
2328
// global options

packages/rum-core/src/domain/tracing/tracer.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ function makeTracingHeaders(
177177

178178
propagatorTypes.forEach((propagatorType) => {
179179
switch (propagatorType) {
180-
case 'datadog': {
181-
Object.assign(tracingHeaders, {
182-
'x-datadog-origin': 'rum',
183-
'x-datadog-parent-id': spanId.toString(),
184-
'x-datadog-sampling-priority': traceSampled ? '1' : '0',
185-
'x-datadog-trace-id': traceId.toString(),
186-
})
187-
break
188-
}
189180
// https://www.w3.org/TR/trace-context/
190181
case 'tracecontext': {
191182
Object.assign(tracingHeaders, {

packages/rum-core/src/domain/tracing/tracer.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import type { MatchOption } from '@flashcatcloud/browser-core'
66
* b3: B3 Single Header (b3)
77
* b3multi: B3 Multiple Headers (X-B3-*)
88
*/
9-
export type PropagatorType = 'datadog' | 'b3' | 'b3multi' | 'tracecontext'
9+
export type PropagatorType = 'b3' | 'b3multi' | 'tracecontext'
1010
export type TracingOption = { match: MatchOption; propagatorTypes: PropagatorType[] }

0 commit comments

Comments
 (0)