Skip to content

Commit ca3b6d1

Browse files
authored
ref(tracing): Export utility function from tracing (#2896)
The `stripUrlQueryAndFragment` function from `@sentry/utils` is nice to have for manual tracing instrumentation. This makes it available in the `@sentry/tracing` namespace.
1 parent 15465a8 commit ca3b6d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/tracing/src/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ export function extractTraceparentData(traceparent: string): TraceparentData | u
4141
}
4242
return undefined;
4343
}
44+
45+
// so it can be used in manual instrumentation without necessitating a hard dependency on @sentry/utils
46+
export { stripUrlQueryAndFragment } from '@sentry/utils';

0 commit comments

Comments
 (0)