@sentry/utils
- Version 8.53.0
- Published
- 347 kB
- 1 dependency
- MIT license
Install
npm i @sentry/utils
yarn add @sentry/utils
pnpm add @sentry/utils
Overview
Utilities for all Sentry JavaScript SDKs
Index
Variables
- addConsoleInstrumentationHandler
- addContextToFrame
- addExceptionMechanism
- addExceptionTypeValue
- addFetchEndInstrumentationHandler
- addFetchInstrumentationHandler
- addGlobalErrorInstrumentationHandler
- addGlobalUnhandledRejectionInstrumentationHandler
- addHandler
- addItemToEnvelope
- addNonEnumerableProperty
- addNormalizedRequestDataToEvent
- addRequestDataToEvent
- applyAggregateErrorsToEvent
- arrayify
- BAGGAGE_HEADER_NAME
- baggageHeaderToDynamicSamplingContext
- basename
- browserPerformanceTimeOrigin
- callFrameToStackFrame
- checkOrSetAlreadyCaught
- CONSOLE_LEVELS
- consoleSandbox
- convertToPlainObject
- createAttachmentEnvelopeItem
- createClientReportEnvelope
- createEnvelope
- createEventEnvelopeHeaders
- createSpanEnvelopeItem
- createStackParser
- dateTimestampInSeconds
- DEFAULT_RETRY_AFTER
- DEFAULT_USER_INCLUDES
- dirname
- disabledUntil
- dropUndefinedKeys
- dsnFromString
- dsnToString
- dynamicRequire
- dynamicSamplingContextToSentryBaggageHeader
- envelopeContainsItemType
- envelopeItemTypeToDataCategory
- escapeStringForRegex
- eventFromMessage
- eventFromUnknownInput
- exceptionFromError
- extractExceptionKeysForMessage
- extractPathForTransaction
- extractRequestData
- extractTraceparentData
- filenameIsInApp
- fill
- flatten
- forEachEnvelopeItem
- generatePropagationContext
- generateSentryTraceHeader
- getBreadcrumbLogLevelFromHttpStatusCode
- getComponentName
- getDebugImagesForResources
- getDomElement
- getEventDescription
- getFilenameToDebugIdMap
- getFramesFromEvent
- getFunctionName
- getGlobalSingleton
- getLocationHref
- getNumberOfUrlSegments
- getOriginalFunction
- getSanitizedUrlString
- getSdkMetadataForEnvelopeHeader
- getSDKSource
- GLOBAL_OBJ
- htmlTreeAsString
- isAbsolute
- isBrowser
- isBrowserBundle
- isDOMError
- isDOMException
- isElement
- isError
- isErrorEvent
- isEvent
- isInstanceOf
- isMatchingPattern
- isNativeFunction
- isNodeEnv
- isParameterizedString
- isPlainObject
- isPrimitive
- isRateLimited
- isRegExp
- isString
- isSyntheticEvent
- isThenable
- isVueViewModel
- join
- loadModule
- logger
- LRUMap
- makeDsn
- makeFifoCache
- makePromiseBuffer
- markFunctionWrapped
- MAX_BAGGAGE_STRING_LENGTH
- maybeInstrument
- memoBuilder
- node
- nodeStackLineParser
- normalize
- normalizePath
- normalizeToSize
- normalizeUrlToBase
- objectify
- originalConsoleMethods
- parseBaggageHeader
- parseEnvelope
- parseRetryAfterHeader
- parseSemver
- parseStackFrames
- parseUrl
- propagationContextFromHeaders
- rejectedSyncPromise
- relative
- resetInstrumentationHandlers
- resolve
- resolvedSyncPromise
- safeJoin
- SDK_VERSION
- SENTRY_BAGGAGE_KEY_PREFIX
- SENTRY_BAGGAGE_KEY_PREFIX_REGEX
- SentryError
- serializeEnvelope
- severityLevelFromString
- snipLine
- stackParserFromStackParserOptions
- stringMatchesSomePattern
- stripSentryFramesAndReverse
- stripUrlQueryAndFragment
- supportsDOMError
- supportsDOMException
- supportsErrorEvent
- supportsFetch
- supportsHistory
- supportsNativeFetch
- supportsReferrerPolicy
- supportsReportingObserver
- SyncPromise
- TRACEPARENT_REGEXP
- triggerHandlers
- truncate
- UNKNOWN_FUNCTION
- updateRateLimits
- urlEncode
- uuid4
- validSeverityLevels
- vercelWaitUntil
- watchdogTimer
- winterCGHeadersToDict
- winterCGRequestToRequestData
Functions
Type Aliases
Variables
variable addConsoleInstrumentationHandler
const addConsoleInstrumentationHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addContextToFrame
const addContextToFrame: any;
Deprecated
Import from
@sentry/core
instead.
variable addExceptionMechanism
const addExceptionMechanism: any;
Deprecated
Import from
@sentry/core
instead.
variable addExceptionTypeValue
const addExceptionTypeValue: any;
Deprecated
Import from
@sentry/core
instead.
variable addFetchEndInstrumentationHandler
const addFetchEndInstrumentationHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addFetchInstrumentationHandler
const addFetchInstrumentationHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addGlobalErrorInstrumentationHandler
const addGlobalErrorInstrumentationHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addGlobalUnhandledRejectionInstrumentationHandler
const addGlobalUnhandledRejectionInstrumentationHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addHandler
const addHandler: any;
Deprecated
Import from
@sentry/core
instead.
variable addItemToEnvelope
const addItemToEnvelope: any;
Deprecated
Import from
@sentry/core
instead.
variable addNonEnumerableProperty
const addNonEnumerableProperty: any;
Deprecated
Import from
@sentry/core
instead.
variable addNormalizedRequestDataToEvent
const addNormalizedRequestDataToEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable addRequestDataToEvent
const addRequestDataToEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable applyAggregateErrorsToEvent
const applyAggregateErrorsToEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable arrayify
const arrayify: any;
Deprecated
Import from
@sentry/core
instead.
variable BAGGAGE_HEADER_NAME
const BAGGAGE_HEADER_NAME: string;
Deprecated
Import from
@sentry/core
instead.
variable baggageHeaderToDynamicSamplingContext
const baggageHeaderToDynamicSamplingContext: any;
Deprecated
Import from
@sentry/core
instead.
variable basename
const basename: any;
Deprecated
Import from
@sentry/core
instead.
variable browserPerformanceTimeOrigin
const browserPerformanceTimeOrigin: number;
Deprecated
Import from
@sentry/core
instead.
variable callFrameToStackFrame
const callFrameToStackFrame: any;
Deprecated
Import from
@sentry/core
instead.
variable checkOrSetAlreadyCaught
const checkOrSetAlreadyCaught: any;
Deprecated
Import from
@sentry/core
instead.
variable CONSOLE_LEVELS
const CONSOLE_LEVELS: readonly any[];
Deprecated
Import from
@sentry/core
instead.
variable consoleSandbox
const consoleSandbox: any;
Deprecated
Import from
@sentry/core
instead.
variable convertToPlainObject
const convertToPlainObject: any;
Deprecated
Import from
@sentry/core
instead.
variable createAttachmentEnvelopeItem
const createAttachmentEnvelopeItem: any;
Deprecated
Import from
@sentry/core
instead.
variable createClientReportEnvelope
const createClientReportEnvelope: any;
Deprecated
Import from
@sentry/core
instead.
variable createEnvelope
const createEnvelope: any;
Deprecated
Import from
@sentry/core
instead.
variable createEventEnvelopeHeaders
const createEventEnvelopeHeaders: any;
Deprecated
Import from
@sentry/core
instead.
variable createSpanEnvelopeItem
const createSpanEnvelopeItem: any;
Deprecated
Import from
@sentry/core
instead.
variable createStackParser
const createStackParser: any;
Deprecated
Import from
@sentry/core
instead.
variable dateTimestampInSeconds
const dateTimestampInSeconds: any;
Deprecated
Import from
@sentry/core
instead.
variable DEFAULT_RETRY_AFTER
const DEFAULT_RETRY_AFTER: number;
Deprecated
Import from
@sentry/core
instead.
variable DEFAULT_USER_INCLUDES
const DEFAULT_USER_INCLUDES: string[];
Deprecated
Import from
@sentry/core
instead.
variable dirname
const dirname: any;
Deprecated
Import from
@sentry/core
instead.
variable disabledUntil
const disabledUntil: any;
Deprecated
Import from
@sentry/core
instead.
variable dropUndefinedKeys
const dropUndefinedKeys: any;
Deprecated
Import from
@sentry/core
instead.
variable dsnFromString
const dsnFromString: any;
Deprecated
Import from
@sentry/core
instead.
variable dsnToString
const dsnToString: any;
Deprecated
Import from
@sentry/core
instead.
variable dynamicRequire
const dynamicRequire: any;
Deprecated
Import from
@sentry/core
instead.
variable dynamicSamplingContextToSentryBaggageHeader
const dynamicSamplingContextToSentryBaggageHeader: any;
Deprecated
Import from
@sentry/core
instead.
variable envelopeContainsItemType
const envelopeContainsItemType: any;
Deprecated
Import from
@sentry/core
instead.
variable envelopeItemTypeToDataCategory
const envelopeItemTypeToDataCategory: any;
Deprecated
Import from
@sentry/core
instead.
variable escapeStringForRegex
const escapeStringForRegex: any;
Deprecated
Import from
@sentry/core
instead.
variable eventFromMessage
const eventFromMessage: any;
Deprecated
Import from
@sentry/core
instead.
variable eventFromUnknownInput
const eventFromUnknownInput: any;
Deprecated
Import from
@sentry/core
instead.
variable exceptionFromError
const exceptionFromError: any;
Deprecated
Import from
@sentry/core
instead.
variable extractExceptionKeysForMessage
const extractExceptionKeysForMessage: any;
Deprecated
Import from
@sentry/core
instead.
variable extractPathForTransaction
const extractPathForTransaction: any;
Deprecated
Import from
@sentry/core
instead.
variable extractRequestData
const extractRequestData: any;
Deprecated
Import from
@sentry/core
instead.
variable extractTraceparentData
const extractTraceparentData: any;
Deprecated
Import from
@sentry/core
instead.
variable filenameIsInApp
const filenameIsInApp: any;
Deprecated
Import from
@sentry/core
instead.
variable fill
const fill: any;
Deprecated
Import from
@sentry/core
instead.
variable flatten
const flatten: any;
Deprecated
Import from
@sentry/core
instead.
variable forEachEnvelopeItem
const forEachEnvelopeItem: any;
Deprecated
Import from
@sentry/core
instead.
variable generatePropagationContext
const generatePropagationContext: any;
Deprecated
Import from
@sentry/core
instead.
variable generateSentryTraceHeader
const generateSentryTraceHeader: any;
Deprecated
Import from
@sentry/core
instead.
variable getBreadcrumbLogLevelFromHttpStatusCode
const getBreadcrumbLogLevelFromHttpStatusCode: any;
Deprecated
Import from
@sentry/core
instead.
variable getComponentName
const getComponentName: any;
Deprecated
Import from
@sentry/core
instead.
variable getDebugImagesForResources
const getDebugImagesForResources: any;
Deprecated
Import from
@sentry/core
instead.
variable getDomElement
const getDomElement: any;
Deprecated
Import from
@sentry/core
instead.
variable getEventDescription
const getEventDescription: any;
Deprecated
Import from
@sentry/core
instead.
variable getFilenameToDebugIdMap
const getFilenameToDebugIdMap: any;
Deprecated
Import from
@sentry/core
instead.
variable getFramesFromEvent
const getFramesFromEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable getFunctionName
const getFunctionName: any;
Deprecated
Import from
@sentry/core
instead.
variable getGlobalSingleton
const getGlobalSingleton: any;
Deprecated
Import from
@sentry/core
instead.
variable getLocationHref
const getLocationHref: any;
Deprecated
Import from
@sentry/core
instead.
variable getNumberOfUrlSegments
const getNumberOfUrlSegments: any;
Deprecated
Import from
@sentry/core
instead.
variable getOriginalFunction
const getOriginalFunction: any;
Deprecated
Import from
@sentry/core
instead.
variable getSanitizedUrlString
const getSanitizedUrlString: any;
Deprecated
Import from
@sentry/core
instead.
variable getSdkMetadataForEnvelopeHeader
const getSdkMetadataForEnvelopeHeader: any;
Deprecated
Import from
@sentry/core
instead.
variable getSDKSource
const getSDKSource: any;
Deprecated
Import from
@sentry/core
instead.
variable GLOBAL_OBJ
const GLOBAL_OBJ: InternalGlobal_imported;
Deprecated
Import from
@sentry/core
instead.
variable htmlTreeAsString
const htmlTreeAsString: any;
Deprecated
Import from
@sentry/core
instead.
variable isAbsolute
const isAbsolute: any;
Deprecated
Import from
@sentry/core
instead.
variable isBrowser
const isBrowser: any;
Deprecated
Import from
@sentry/core
instead.
variable isBrowserBundle
const isBrowserBundle: any;
Deprecated
Import from
@sentry/core
instead.
variable isDOMError
const isDOMError: any;
Deprecated
Import from
@sentry/core
instead.
variable isDOMException
const isDOMException: any;
Deprecated
Import from
@sentry/core
instead.
variable isElement
const isElement: any;
Deprecated
Import from
@sentry/core
instead.
variable isError
const isError: any;
Deprecated
Import from
@sentry/core
instead.
variable isErrorEvent
const isErrorEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable isEvent
const isEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable isInstanceOf
const isInstanceOf: any;
Deprecated
Import from
@sentry/core
instead.
variable isMatchingPattern
const isMatchingPattern: any;
Deprecated
Import from
@sentry/core
instead.
variable isNativeFunction
const isNativeFunction: any;
Deprecated
Import from
@sentry/core
instead.
variable isNodeEnv
const isNodeEnv: any;
Deprecated
Import from
@sentry/core
instead.
variable isParameterizedString
const isParameterizedString: any;
Deprecated
Import from
@sentry/core
instead.
variable isPlainObject
const isPlainObject: any;
Deprecated
Import from
@sentry/core
instead.
variable isPrimitive
const isPrimitive: any;
Deprecated
Import from
@sentry/core
instead.
variable isRateLimited
const isRateLimited: any;
Deprecated
Import from
@sentry/core
instead.
variable isRegExp
const isRegExp: any;
Deprecated
Import from
@sentry/core
instead.
variable isString
const isString: any;
Deprecated
Import from
@sentry/core
instead.
variable isSyntheticEvent
const isSyntheticEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable isThenable
const isThenable: any;
Deprecated
Import from
@sentry/core
instead.
variable isVueViewModel
const isVueViewModel: any;
Deprecated
Import from
@sentry/core
instead.
variable join
const join: any;
Deprecated
Import from
@sentry/core
instead.
variable loadModule
const loadModule: any;
Deprecated
Import from
@sentry/core
instead.
variable logger
const logger: any;
Deprecated
Import from
@sentry/core
instead.
variable LRUMap
const LRUMap: any;
Deprecated
Import from
@sentry/core
instead.
variable makeDsn
const makeDsn: any;
Deprecated
Import from
@sentry/core
instead.
variable makeFifoCache
const makeFifoCache: any;
Deprecated
Import from
@sentry/core
instead.
variable makePromiseBuffer
const makePromiseBuffer: any;
Deprecated
Import from
@sentry/core
instead.
variable markFunctionWrapped
const markFunctionWrapped: any;
Deprecated
Import from
@sentry/core
instead.
variable MAX_BAGGAGE_STRING_LENGTH
const MAX_BAGGAGE_STRING_LENGTH: number;
Deprecated
Import from
@sentry/core
instead.
variable maybeInstrument
const maybeInstrument: any;
Deprecated
Import from
@sentry/core
instead.
variable memoBuilder
const memoBuilder: any;
Deprecated
Import from
@sentry/core
instead.
variable node
const node: any;
Deprecated
Import from
@sentry/core
instead.
variable nodeStackLineParser
const nodeStackLineParser: any;
Deprecated
Import from
@sentry/core
instead.
variable normalize
const normalize: any;
Deprecated
Import from
@sentry/core
instead.
variable normalizePath
const normalizePath: any;
Deprecated
Import from
@sentry/core
instead.
variable normalizeToSize
const normalizeToSize: any;
Deprecated
Import from
@sentry/core
instead.
variable normalizeUrlToBase
const normalizeUrlToBase: any;
Deprecated
Import from
@sentry/core
instead.
variable objectify
const objectify: any;
Deprecated
Import from
@sentry/core
instead.
variable originalConsoleMethods
const originalConsoleMethods: { debug?: (...args: unknown[]) => void; info?: (...args: unknown[]) => void; warn?: (...args: unknown[]) => void; error?: (...args: unknown[]) => void; log?: (...args: unknown[]) => void; assert?: (...args: unknown[]) => void; trace?: (...args: unknown[]) => void;};
Deprecated
Import from
@sentry/core
instead.
variable parseBaggageHeader
const parseBaggageHeader: any;
Deprecated
Import from
@sentry/core
instead.
variable parseEnvelope
const parseEnvelope: any;
Deprecated
Import from
@sentry/core
instead.
variable parseRetryAfterHeader
const parseRetryAfterHeader: any;
Deprecated
Import from
@sentry/core
instead.
variable parseSemver
const parseSemver: any;
Deprecated
Import from
@sentry/core
instead.
variable parseStackFrames
const parseStackFrames: any;
Deprecated
Import from
@sentry/core
instead.
variable parseUrl
const parseUrl: any;
Deprecated
Import from
@sentry/core
instead.
variable propagationContextFromHeaders
const propagationContextFromHeaders: any;
Deprecated
Import from
@sentry/core
instead.
variable rejectedSyncPromise
const rejectedSyncPromise: any;
Deprecated
Import from
@sentry/core
instead.
variable relative
const relative: any;
Deprecated
Import from
@sentry/core
instead.
variable resetInstrumentationHandlers
const resetInstrumentationHandlers: any;
Deprecated
Import from
@sentry/core
instead.
variable resolve
const resolve: any;
Deprecated
Import from
@sentry/core
instead.
variable resolvedSyncPromise
const resolvedSyncPromise: any;
Deprecated
Import from
@sentry/core
instead.
variable safeJoin
const safeJoin: any;
Deprecated
Import from
@sentry/core
instead.
variable SDK_VERSION
const SDK_VERSION: string;
Deprecated
Import from
@sentry/core
instead.
variable SENTRY_BAGGAGE_KEY_PREFIX
const SENTRY_BAGGAGE_KEY_PREFIX: string;
Deprecated
Import from
@sentry/core
instead.
variable SENTRY_BAGGAGE_KEY_PREFIX_REGEX
const SENTRY_BAGGAGE_KEY_PREFIX_REGEX: RegExp;
Deprecated
Import from
@sentry/core
instead.
variable SentryError
const SentryError: any;
Deprecated
Import from
@sentry/core
instead.
variable serializeEnvelope
const serializeEnvelope: any;
Deprecated
Import from
@sentry/core
instead.
variable severityLevelFromString
const severityLevelFromString: any;
Deprecated
Import from
@sentry/core
instead.
variable snipLine
const snipLine: any;
Deprecated
Import from
@sentry/core
instead.
variable stackParserFromStackParserOptions
const stackParserFromStackParserOptions: any;
Deprecated
Import from
@sentry/core
instead.
variable stringMatchesSomePattern
const stringMatchesSomePattern: any;
Deprecated
Import from
@sentry/core
instead.
variable stripSentryFramesAndReverse
const stripSentryFramesAndReverse: any;
Deprecated
Import from
@sentry/core
instead.
variable stripUrlQueryAndFragment
const stripUrlQueryAndFragment: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsDOMError
const supportsDOMError: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsDOMException
const supportsDOMException: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsErrorEvent
const supportsErrorEvent: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsFetch
const supportsFetch: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsHistory
const supportsHistory: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsNativeFetch
const supportsNativeFetch: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsReferrerPolicy
const supportsReferrerPolicy: any;
Deprecated
Import from
@sentry/core
instead.
variable supportsReportingObserver
const supportsReportingObserver: any;
Deprecated
Import from
@sentry/core
instead.
variable SyncPromise
const SyncPromise: any;
Deprecated
Import from
@sentry/core
instead.
variable TRACEPARENT_REGEXP
const TRACEPARENT_REGEXP: RegExp;
Deprecated
Import from
@sentry/core
instead.
variable triggerHandlers
const triggerHandlers: any;
Deprecated
Import from
@sentry/core
instead.
variable truncate
const truncate: any;
Deprecated
Import from
@sentry/core
instead.
variable UNKNOWN_FUNCTION
const UNKNOWN_FUNCTION: string;
Deprecated
Import from
@sentry/core
instead.
variable updateRateLimits
const updateRateLimits: any;
Deprecated
Import from
@sentry/core
instead.
variable urlEncode
const urlEncode: any;
Deprecated
Import from
@sentry/core
instead.
variable uuid4
const uuid4: any;
Deprecated
Import from
@sentry/core
instead.
variable validSeverityLevels
const validSeverityLevels: string[];
Deprecated
Import from
@sentry/core
instead.
variable vercelWaitUntil
const vercelWaitUntil: any;
Deprecated
Import from
@sentry/core
instead.
variable watchdogTimer
const watchdogTimer: any;
Deprecated
Import from
@sentry/core
instead.
variable winterCGHeadersToDict
const winterCGHeadersToDict: any;
Deprecated
Import from
@sentry/core
instead.
variable winterCGRequestToRequestData
const winterCGRequestToRequestData: any;
Deprecated
Import from
@sentry/core
instead.
Functions
function timestampInSeconds
timestampInSeconds: () => number;
Deprecated
Import from
@sentry/core
instead.
Type Aliases
type AddRequestDataToEventOptions
type AddRequestDataToEventOptions = AddRequestDataToEventOptions_imported;
Deprecated
Import from
@sentry/core
instead.
type InternalGlobal
type InternalGlobal = InternalGlobal_imported;
Deprecated
Import from
@sentry/core
instead.
type PromiseBuffer
type PromiseBuffer<T> = PromiseBuffer_imported<T>;
Deprecated
Import from
@sentry/core
instead.
type RateLimits
type RateLimits = RateLimits_imported;
Deprecated
Import from
@sentry/core
instead.
type SdkSource
type SdkSource = SdkSource_imported;
Deprecated
Import from
@sentry/core
instead.
type TransactionNamingScheme
type TransactionNamingScheme = TransactionNamingScheme_imported;
Deprecated
Import from
@sentry/core
instead.
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@sentry/utils
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@sentry/utils)
- HTML<a href="https://www.jsdocs.io/package/@sentry/utils"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 5854 ms. - Missing or incorrect documentation? Open an issue for this package.