Skip to content

Commit 8f1a21a

Browse files
committed
export things for future test use
1 parent 5d84228 commit 8f1a21a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/tracing/src/browser/browsertracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class BrowserTracing implements Integration {
217217
*
218218
* @returns Transaction context data from the header or undefined if there's no header or the header is malformed
219219
*/
220-
function getHeaderContext(): Partial<TransactionContext> | undefined {
220+
export function getHeaderContext(): Partial<TransactionContext> | undefined {
221221
const header = getMetaContent('sentry-trace');
222222
if (header) {
223223
return extractTraceparentData(header);

packages/tracing/src/browser/request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface FetchData {
5454
}
5555

5656
/** Data returned from XHR request */
57-
interface XHRData {
57+
export interface XHRData {
5858
xhr?: {
5959
__sentry_xhr__?: {
6060
method: string;
@@ -198,7 +198,7 @@ export function fetchCallback(
198198
/**
199199
* Create and track xhr request spans
200200
*/
201-
function xhrCallback(
201+
export function xhrCallback(
202202
handlerData: XHRData,
203203
shouldCreateSpan: (url: string) => boolean,
204204
spans: Record<string, Span>,

0 commit comments

Comments
 (0)