index.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. Object.defineProperty(exports, '__esModule', { value: true });
  2. const hubextensions = require('./tracing/hubextensions.js');
  3. const idletransaction = require('./tracing/idletransaction.js');
  4. const span = require('./tracing/span.js');
  5. const transaction = require('./tracing/transaction.js');
  6. const utils = require('./tracing/utils.js');
  7. const spanstatus = require('./tracing/spanstatus.js');
  8. const trace = require('./tracing/trace.js');
  9. const dynamicSamplingContext = require('./tracing/dynamicSamplingContext.js');
  10. const measurement = require('./tracing/measurement.js');
  11. const semanticAttributes = require('./semanticAttributes.js');
  12. const envelope = require('./envelope.js');
  13. const exports$1 = require('./exports.js');
  14. const hub = require('./hub.js');
  15. const session = require('./session.js');
  16. const sessionflusher = require('./sessionflusher.js');
  17. const scope = require('./scope.js');
  18. const eventProcessors = require('./eventProcessors.js');
  19. const api = require('./api.js');
  20. const baseclient = require('./baseclient.js');
  21. const serverRuntimeClient = require('./server-runtime-client.js');
  22. const sdk = require('./sdk.js');
  23. const base = require('./transports/base.js');
  24. const offline = require('./transports/offline.js');
  25. const multiplexed = require('./transports/multiplexed.js');
  26. const version = require('./version.js');
  27. const integration = require('./integration.js');
  28. const applyScopeDataToEvent = require('./utils/applyScopeDataToEvent.js');
  29. const prepareEvent = require('./utils/prepareEvent.js');
  30. const checkin = require('./checkin.js');
  31. const hasTracingEnabled = require('./utils/hasTracingEnabled.js');
  32. const isSentryRequestUrl = require('./utils/isSentryRequestUrl.js');
  33. const handleCallbackErrors = require('./utils/handleCallbackErrors.js');
  34. const parameterize = require('./utils/parameterize.js');
  35. const spanUtils = require('./utils/spanUtils.js');
  36. const getRootSpan = require('./utils/getRootSpan.js');
  37. const sdkMetadata = require('./utils/sdkMetadata.js');
  38. const constants = require('./constants.js');
  39. const metadata = require('./integrations/metadata.js');
  40. const requestdata = require('./integrations/requestdata.js');
  41. const inboundfilters = require('./integrations/inboundfilters.js');
  42. const functiontostring = require('./integrations/functiontostring.js');
  43. const linkederrors = require('./integrations/linkederrors.js');
  44. const index = require('./integrations/index.js');
  45. const exports$2 = require('./metrics/exports.js');
  46. /** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */
  47. const Integrations = index;
  48. exports.addTracingExtensions = hubextensions.addTracingExtensions;
  49. exports.startIdleTransaction = hubextensions.startIdleTransaction;
  50. exports.IdleTransaction = idletransaction.IdleTransaction;
  51. exports.TRACING_DEFAULTS = idletransaction.TRACING_DEFAULTS;
  52. exports.Span = span.Span;
  53. exports.Transaction = transaction.Transaction;
  54. exports.extractTraceparentData = utils.extractTraceparentData;
  55. exports.getActiveTransaction = utils.getActiveTransaction;
  56. Object.defineProperty(exports, 'SpanStatus', {
  57. enumerable: true,
  58. get: () => spanstatus.SpanStatus
  59. });
  60. exports.getSpanStatusFromHttpCode = spanstatus.getSpanStatusFromHttpCode;
  61. exports.setHttpStatus = spanstatus.setHttpStatus;
  62. exports.spanStatusfromHttpCode = spanstatus.spanStatusfromHttpCode;
  63. exports.continueTrace = trace.continueTrace;
  64. exports.getActiveSpan = trace.getActiveSpan;
  65. exports.startActiveSpan = trace.startActiveSpan;
  66. exports.startInactiveSpan = trace.startInactiveSpan;
  67. exports.startSpan = trace.startSpan;
  68. exports.startSpanManual = trace.startSpanManual;
  69. exports.trace = trace.trace;
  70. exports.getDynamicSamplingContextFromClient = dynamicSamplingContext.getDynamicSamplingContextFromClient;
  71. exports.getDynamicSamplingContextFromSpan = dynamicSamplingContext.getDynamicSamplingContextFromSpan;
  72. exports.setMeasurement = measurement.setMeasurement;
  73. exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_OP;
  74. exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
  75. exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
  76. exports.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
  77. exports.createEventEnvelope = envelope.createEventEnvelope;
  78. exports.createSessionEnvelope = envelope.createSessionEnvelope;
  79. exports.addBreadcrumb = exports$1.addBreadcrumb;
  80. exports.captureCheckIn = exports$1.captureCheckIn;
  81. exports.captureEvent = exports$1.captureEvent;
  82. exports.captureException = exports$1.captureException;
  83. exports.captureMessage = exports$1.captureMessage;
  84. exports.captureSession = exports$1.captureSession;
  85. exports.close = exports$1.close;
  86. exports.configureScope = exports$1.configureScope;
  87. exports.endSession = exports$1.endSession;
  88. exports.flush = exports$1.flush;
  89. exports.getClient = exports$1.getClient;
  90. exports.getCurrentScope = exports$1.getCurrentScope;
  91. exports.isInitialized = exports$1.isInitialized;
  92. exports.lastEventId = exports$1.lastEventId;
  93. exports.setContext = exports$1.setContext;
  94. exports.setExtra = exports$1.setExtra;
  95. exports.setExtras = exports$1.setExtras;
  96. exports.setTag = exports$1.setTag;
  97. exports.setTags = exports$1.setTags;
  98. exports.setUser = exports$1.setUser;
  99. exports.startSession = exports$1.startSession;
  100. exports.startTransaction = exports$1.startTransaction;
  101. exports.withActiveSpan = exports$1.withActiveSpan;
  102. exports.withIsolationScope = exports$1.withIsolationScope;
  103. exports.withMonitor = exports$1.withMonitor;
  104. exports.withScope = exports$1.withScope;
  105. exports.Hub = hub.Hub;
  106. exports.ensureHubOnCarrier = hub.ensureHubOnCarrier;
  107. exports.getCurrentHub = hub.getCurrentHub;
  108. exports.getHubFromCarrier = hub.getHubFromCarrier;
  109. exports.getIsolationScope = hub.getIsolationScope;
  110. exports.getMainCarrier = hub.getMainCarrier;
  111. exports.makeMain = hub.makeMain;
  112. exports.runWithAsyncContext = hub.runWithAsyncContext;
  113. exports.setAsyncContextStrategy = hub.setAsyncContextStrategy;
  114. exports.setHubOnCarrier = hub.setHubOnCarrier;
  115. exports.closeSession = session.closeSession;
  116. exports.makeSession = session.makeSession;
  117. exports.updateSession = session.updateSession;
  118. exports.SessionFlusher = sessionflusher.SessionFlusher;
  119. exports.Scope = scope.Scope;
  120. exports.getGlobalScope = scope.getGlobalScope;
  121. exports.setGlobalScope = scope.setGlobalScope;
  122. exports.addGlobalEventProcessor = eventProcessors.addGlobalEventProcessor;
  123. exports.notifyEventProcessors = eventProcessors.notifyEventProcessors;
  124. exports.getEnvelopeEndpointWithUrlEncodedAuth = api.getEnvelopeEndpointWithUrlEncodedAuth;
  125. exports.getReportDialogEndpoint = api.getReportDialogEndpoint;
  126. exports.BaseClient = baseclient.BaseClient;
  127. exports.addEventProcessor = baseclient.addEventProcessor;
  128. exports.ServerRuntimeClient = serverRuntimeClient.ServerRuntimeClient;
  129. exports.initAndBind = sdk.initAndBind;
  130. exports.setCurrentClient = sdk.setCurrentClient;
  131. exports.createTransport = base.createTransport;
  132. exports.makeOfflineTransport = offline.makeOfflineTransport;
  133. exports.makeMultiplexedTransport = multiplexed.makeMultiplexedTransport;
  134. exports.SDK_VERSION = version.SDK_VERSION;
  135. exports.addIntegration = integration.addIntegration;
  136. exports.convertIntegrationFnToClass = integration.convertIntegrationFnToClass;
  137. exports.defineIntegration = integration.defineIntegration;
  138. exports.getIntegrationsToSetup = integration.getIntegrationsToSetup;
  139. exports.applyScopeDataToEvent = applyScopeDataToEvent.applyScopeDataToEvent;
  140. exports.mergeScopeData = applyScopeDataToEvent.mergeScopeData;
  141. exports.prepareEvent = prepareEvent.prepareEvent;
  142. exports.createCheckInEnvelope = checkin.createCheckInEnvelope;
  143. exports.hasTracingEnabled = hasTracingEnabled.hasTracingEnabled;
  144. exports.isSentryRequestUrl = isSentryRequestUrl.isSentryRequestUrl;
  145. exports.handleCallbackErrors = handleCallbackErrors.handleCallbackErrors;
  146. exports.parameterize = parameterize.parameterize;
  147. exports.spanIsSampled = spanUtils.spanIsSampled;
  148. exports.spanToJSON = spanUtils.spanToJSON;
  149. exports.spanToTraceContext = spanUtils.spanToTraceContext;
  150. exports.spanToTraceHeader = spanUtils.spanToTraceHeader;
  151. exports.getRootSpan = getRootSpan.getRootSpan;
  152. exports.applySdkMetadata = sdkMetadata.applySdkMetadata;
  153. exports.DEFAULT_ENVIRONMENT = constants.DEFAULT_ENVIRONMENT;
  154. exports.ModuleMetadata = metadata.ModuleMetadata;
  155. exports.moduleMetadataIntegration = metadata.moduleMetadataIntegration;
  156. exports.RequestData = requestdata.RequestData;
  157. exports.requestDataIntegration = requestdata.requestDataIntegration;
  158. exports.InboundFilters = inboundfilters.InboundFilters;
  159. exports.inboundFiltersIntegration = inboundfilters.inboundFiltersIntegration;
  160. exports.FunctionToString = functiontostring.FunctionToString;
  161. exports.functionToStringIntegration = functiontostring.functionToStringIntegration;
  162. exports.LinkedErrors = linkederrors.LinkedErrors;
  163. exports.linkedErrorsIntegration = linkederrors.linkedErrorsIntegration;
  164. exports.metrics = exports$2.metrics;
  165. exports.Integrations = Integrations;
  166. //# sourceMappingURL=index.js.map