Skip to content

Commit

Permalink
feat: Expose required things for React Native auto tracing (#3144)
Browse files Browse the repository at this point in the history
* feat: Expose required things for react native tracing

* ref: Only export what's needed from request
  • Loading branch information
jennmueng committed Jan 12, 2021
1 parent d14d109 commit 674eddf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/tracing/src/browser/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export { BrowserTracing } from './browsertracing';
export {
registerRequestInstrumentation,
RequestInstrumentationOptions,
defaultRequestInstrumentationOptions,
} from './request';
8 changes: 7 additions & 1 deletion packages/tracing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ const Integrations = { ...TracingIntegrations, BrowserTracing };
export { Integrations };
export { Span } from './span';
export { Transaction } from './transaction';

export {
registerRequestInstrumentation,
RequestInstrumentationOptions,
defaultRequestInstrumentationOptions,
} from './browser';
export { SpanStatus } from './spanstatus';
export { IdleTransaction } from './idletransaction';
export { startIdleTransaction } from './hubextensions';

// We are patching the global object with our hub extension methods
addExtensionMethods();
Expand Down

0 comments on commit 674eddf

Please sign in to comment.