🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@sentry/core

Package Overview
Dependencies
Maintainers
10
Versions
596
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/core - npm Package Compare versions

Comparing version

to
9.18.0

2

build/cjs/envelope.js

@@ -7,3 +7,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const envelope = require('./utils-hoist/envelope.js');
require('./utils-hoist/debug-build.js');
require('./debug-build.js');
require('./utils-hoist/logger.js');

@@ -10,0 +10,0 @@

@@ -6,6 +6,5 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

require('./tracing/errors.js');
require('./debug-build.js');
const is = require('./utils-hoist/is.js');
require('./utils-hoist/debug-build.js');
require('./utils-hoist/logger.js');
require('./debug-build.js');
const hasSpansEnabled = require('./utils/hasSpansEnabled.js');

@@ -12,0 +11,0 @@ const spanUtils = require('./utils/spanUtils.js');

@@ -397,2 +397,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

exports.parseBaggageHeader = baggage.parseBaggageHeader;
exports.getHttpSpanDetailsFromUrlObject = url.getHttpSpanDetailsFromUrlObject;
exports.getSanitizedUrlString = url.getSanitizedUrlString;

@@ -399,0 +400,0 @@ exports.getSanitizedUrlStringFromUrlObject = url.getSanitizedUrlStringFromUrlObject;

@@ -10,3 +10,2 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const is = require('../utils-hoist/is.js');
require('../utils-hoist/debug-build.js');
const logger = require('../utils-hoist/logger.js');

@@ -13,0 +12,0 @@ require('../utils-hoist/time.js');

@@ -6,3 +6,2 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

require('./tracing/errors.js');
require('./utils-hoist/debug-build.js');
const logger = require('./utils-hoist/logger.js');

@@ -9,0 +8,0 @@ require('./utils-hoist/time.js');

@@ -10,3 +10,2 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const is = require('./utils-hoist/is.js');
require('./utils-hoist/debug-build.js');
const logger = require('./utils-hoist/logger.js');

@@ -13,0 +12,0 @@ const misc = require('./utils-hoist/misc.js');

@@ -11,3 +11,2 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

require('./utils-hoist/logger.js');
require('./utils-hoist/debug-build.js');
const trace = require('./tracing/trace.js');

@@ -14,0 +13,0 @@ const normalize = require('./utils-hoist/normalize.js');

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('./debug-build.js');
const debugBuild = require('../debug-build.js');
const is = require('./is.js');

@@ -117,3 +117,13 @@ const logger = require('./logger.js');

.split(',')
.map(baggageEntry => baggageEntry.split('=').map(keyOrValue => decodeURIComponent(keyOrValue.trim())))
.map(baggageEntry =>
baggageEntry.split('=').map(keyOrValue => {
try {
return decodeURIComponent(keyOrValue.trim());
} catch {
// We ignore errors here, e.g. if the value cannot be URL decoded.
// This will then be skipped in the next step
return;
}
}),
)
.reduce((acc, [key, value]) => {

@@ -120,0 +130,0 @@ if (key && value) {

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('./debug-build.js');
const debugBuild = require('../debug-build.js');
const logger = require('./logger.js');

@@ -5,0 +5,0 @@

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('../debug-build.js');
const debugBuild = require('../../debug-build.js');
const logger = require('../logger.js');

@@ -5,0 +5,0 @@ const stacktrace = require('../stacktrace.js');

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const carrier = require('../carrier.js');
const debugBuild = require('./debug-build.js');
const debugBuild = require('../debug-build.js');
const worldwide = require('./worldwide.js');

@@ -6,0 +6,0 @@

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('../debug-build.js');
const browser = require('./browser.js');
const debugBuild = require('./debug-build.js');
const is = require('./is.js');

@@ -6,0 +6,0 @@ const logger = require('./logger.js');

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const debugBuild = require('./debug-build.js');
const debugBuild = require('../debug-build.js');
const logger = require('./logger.js');

@@ -5,0 +5,0 @@ const worldwide = require('./worldwide.js');

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const semanticAttributes = require('../semanticAttributes.js');
// Curious about `thismessage:/`? See: https://www.rfc-editor.org/rfc/rfc2557.html

@@ -34,3 +36,3 @@ // > When the methods above do not yield an absolute URI, a base URL

function parseStringToURLObject(url, urlBase) {
const isRelative = url.startsWith('/');
const isRelative = url.indexOf('://') <= 0 && url.indexOf('//') !== 0;
const base = urlBase ?? (isRelative ? DEFAULT_BASE_URL : undefined);

@@ -89,3 +91,88 @@ try {

function getHttpSpanNameFromUrlObject(
urlObject,
kind,
request,
routeName,
) {
const method = request?.method?.toUpperCase() ?? 'GET';
const route = routeName
? routeName
: urlObject
? kind === 'client'
? getSanitizedUrlStringFromUrlObject(urlObject)
: urlObject.pathname
: '/';
return `${method} ${route}`;
}
/**
* Takes a parsed URL object and returns a set of attributes for the span
* that represents the HTTP request for that url. This is used for both server
* and client http spans.
*
* Follows https://opentelemetry.io/docs/specs/semconv/http/.
*
* @param urlObject - see {@link parseStringToURLObject}
* @param kind - The type of HTTP operation (server or client)
* @param spanOrigin - The origin of the span
* @param request - The request object, see {@link PartialRequest}
* @param routeName - The name of the route, must be low cardinality
* @returns The span name and attributes for the HTTP operation
*/
function getHttpSpanDetailsFromUrlObject(
urlObject,
kind,
spanOrigin,
request,
routeName,
) {
const attributes = {
[semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin,
[semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
};
if (routeName) {
// This is based on https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name
attributes[kind === 'server' ? 'http.route' : 'url.template'] = routeName;
attributes[semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';
}
if (request?.method) {
attributes[semanticAttributes.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD] = request.method.toUpperCase();
}
if (urlObject) {
if (urlObject.search) {
attributes['url.query'] = urlObject.search;
}
if (urlObject.hash) {
attributes['url.fragment'] = urlObject.hash;
}
if (urlObject.pathname) {
attributes['url.path'] = urlObject.pathname;
if (urlObject.pathname === '/') {
attributes[semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';
}
}
if (!isURLObjectRelative(urlObject)) {
attributes[semanticAttributes.SEMANTIC_ATTRIBUTE_URL_FULL] = urlObject.href;
if (urlObject.port) {
attributes['url.port'] = urlObject.port;
}
if (urlObject.protocol) {
attributes['url.scheme'] = urlObject.protocol;
}
if (urlObject.hostname) {
attributes[kind === 'server' ? 'server.address' : 'url.domain'] = urlObject.hostname;
}
}
}
return [getHttpSpanNameFromUrlObject(urlObject, kind, request, routeName), attributes];
}
/**
* Parses string form of URL into an object

@@ -150,2 +237,3 @@ * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B

exports.getHttpSpanDetailsFromUrlObject = getHttpSpanDetailsFromUrlObject;
exports.getSanitizedUrlString = getSanitizedUrlString;

@@ -152,0 +240,0 @@ exports.getSanitizedUrlStringFromUrlObject = getSanitizedUrlStringFromUrlObject;

@@ -5,5 +5,5 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const SDK_VERSION = "9.17.0" ;
const SDK_VERSION = "9.18.0" ;
exports.SDK_VERSION = SDK_VERSION;
//# sourceMappingURL=version.js.map

@@ -134,4 +134,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {
const { attributes, startTime, name, endTime, parentSpanId, status, links } = span;
const { attributes, startTime, name, endTime, status, links } = span;
// In preparation for the next major of OpenTelemetry, we want to support
// looking up the parent span id according to the new API
// In OTel v1, the parent span id is accessed as `parentSpanId`
// In OTel v2, the parent span id is accessed as `spanId` on the `parentSpanContext`
const parentSpanId =
'parentSpanId' in span
? span.parentSpanId
: 'parentSpanContext' in span
? (span.parentSpanContext )?.spanId
: undefined;
return {

@@ -138,0 +149,0 @@ span_id,

@@ -8,5 +8,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

require('../tracing/errors.js');
require('../utils-hoist/debug-build.js');
require('../debug-build.js');
const logger = require('../utils-hoist/logger.js');
require('../debug-build.js');
const spanUtils = require('./spanUtils.js');

@@ -13,0 +12,0 @@ require('../utils-hoist/time.js');

@@ -5,3 +5,3 @@ import { getDynamicSamplingContextFromSpan } from './tracing/dynamicSamplingContext.js';

import { getSdkMetadataForEnvelopeHeader, createEventEnvelopeHeaders, createEnvelope, createSpanEnvelopeItem } from './utils-hoist/envelope.js';
import './utils-hoist/debug-build.js';
import './debug-build.js';
import './utils-hoist/logger.js';

@@ -8,0 +8,0 @@

import { getClient } from './currentScopes.js';
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes.js';
import './tracing/errors.js';
import './debug-build.js';
import { isRequest, isInstanceOf } from './utils-hoist/is.js';
import './utils-hoist/debug-build.js';
import './utils-hoist/logger.js';
import './debug-build.js';
import { hasSpansEnabled } from './utils/hasSpansEnabled.js';

@@ -9,0 +8,0 @@ import { getActiveSpan } from './utils/spanUtils.js';

@@ -99,3 +99,3 @@ export { registerSpanErrorInstrumentation } from './tracing/errors.js';

export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, objectToBaggageHeader, parseBaggageHeader } from './utils-hoist/baggage.js';
export { getSanitizedUrlString, getSanitizedUrlStringFromUrlObject, isURLObjectRelative, parseStringToURLObject, parseUrl, stripUrlQueryAndFragment } from './utils-hoist/url.js';
export { getHttpSpanDetailsFromUrlObject, getSanitizedUrlString, getSanitizedUrlStringFromUrlObject, isURLObjectRelative, parseStringToURLObject, parseUrl, stripUrlQueryAndFragment } from './utils-hoist/url.js';
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames } from './utils-hoist/eventbuilder.js';

@@ -102,0 +102,0 @@ export { callFrameToStackFrame, watchdogTimer } from './utils-hoist/anr.js';

@@ -8,3 +8,2 @@ import { addBreadcrumb } from '../breadcrumbs.js';

import { isPlainObject } from '../utils-hoist/is.js';
import '../utils-hoist/debug-build.js';
import { logger } from '../utils-hoist/logger.js';

@@ -11,0 +10,0 @@ import '../utils-hoist/time.js';

import { DEBUG_BUILD } from './debug-build.js';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_OP } from './semanticAttributes.js';
import './tracing/errors.js';
import './utils-hoist/debug-build.js';
import { logger } from './utils-hoist/logger.js';

@@ -6,0 +5,0 @@ import './utils-hoist/time.js';

@@ -1,1 +0,1 @@

{"type":"module","version":"9.17.0","sideEffects":false}
{"type":"module","version":"9.18.0","sideEffects":false}

@@ -8,3 +8,2 @@ import { createCheckInEnvelope } from './checkin.js';

import { isPrimitive } from './utils-hoist/is.js';
import './utils-hoist/debug-build.js';
import { logger } from './utils-hoist/logger.js';

@@ -11,0 +10,0 @@ import { uuid4 } from './utils-hoist/misc.js';

@@ -9,3 +9,2 @@ import { getClient, withScope } from './currentScopes.js';

import './utils-hoist/logger.js';
import './utils-hoist/debug-build.js';
import { startSpanManual } from './tracing/trace.js';

@@ -12,0 +11,0 @@ import { normalize } from './utils-hoist/normalize.js';

@@ -1,2 +0,2 @@

import { DEBUG_BUILD } from './debug-build.js';
import { DEBUG_BUILD } from '../debug-build.js';
import { isString } from './is.js';

@@ -115,3 +115,13 @@ import { logger } from './logger.js';

.split(',')
.map(baggageEntry => baggageEntry.split('=').map(keyOrValue => decodeURIComponent(keyOrValue.trim())))
.map(baggageEntry =>
baggageEntry.split('=').map(keyOrValue => {
try {
return decodeURIComponent(keyOrValue.trim());
} catch {
// We ignore errors here, e.g. if the value cannot be URL decoded.
// This will then be skipped in the next step
return;
}
}),
)
.reduce((acc, [key, value]) => {

@@ -118,0 +128,0 @@ if (key && value) {

@@ -1,2 +0,2 @@

import { DEBUG_BUILD } from './debug-build.js';
import { DEBUG_BUILD } from '../debug-build.js';
import { consoleSandbox, logger } from './logger.js';

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

import { DEBUG_BUILD } from '../debug-build.js';
import { DEBUG_BUILD } from '../../debug-build.js';
import { logger } from '../logger.js';

@@ -3,0 +3,0 @@ import { getFunctionName } from '../stacktrace.js';

import { getGlobalSingleton } from '../carrier.js';
import { DEBUG_BUILD } from './debug-build.js';
import { DEBUG_BUILD } from '../debug-build.js';
import { GLOBAL_OBJ } from './worldwide.js';

@@ -4,0 +4,0 @@

@@ -0,3 +1,3 @@

import { DEBUG_BUILD } from '../debug-build.js';
import { htmlTreeAsString } from './browser.js';
import { DEBUG_BUILD } from './debug-build.js';
import { isError, isEvent, isInstanceOf, isPrimitive, isElement } from './is.js';

@@ -4,0 +4,0 @@ import { logger } from './logger.js';

@@ -1,2 +0,2 @@

import { DEBUG_BUILD } from './debug-build.js';
import { DEBUG_BUILD } from '../debug-build.js';
import { logger } from './logger.js';

@@ -3,0 +3,0 @@ import { GLOBAL_OBJ } from './worldwide.js';

@@ -0,1 +1,3 @@

import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD, SEMANTIC_ATTRIBUTE_URL_FULL, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '../semanticAttributes.js';
// Curious about `thismessage:/`? See: https://www.rfc-editor.org/rfc/rfc2557.html

@@ -32,3 +34,3 @@ // > When the methods above do not yield an absolute URI, a base URL

function parseStringToURLObject(url, urlBase) {
const isRelative = url.startsWith('/');
const isRelative = url.indexOf('://') <= 0 && url.indexOf('//') !== 0;
const base = urlBase ?? (isRelative ? DEFAULT_BASE_URL : undefined);

@@ -87,3 +89,88 @@ try {

function getHttpSpanNameFromUrlObject(
urlObject,
kind,
request,
routeName,
) {
const method = request?.method?.toUpperCase() ?? 'GET';
const route = routeName
? routeName
: urlObject
? kind === 'client'
? getSanitizedUrlStringFromUrlObject(urlObject)
: urlObject.pathname
: '/';
return `${method} ${route}`;
}
/**
* Takes a parsed URL object and returns a set of attributes for the span
* that represents the HTTP request for that url. This is used for both server
* and client http spans.
*
* Follows https://opentelemetry.io/docs/specs/semconv/http/.
*
* @param urlObject - see {@link parseStringToURLObject}
* @param kind - The type of HTTP operation (server or client)
* @param spanOrigin - The origin of the span
* @param request - The request object, see {@link PartialRequest}
* @param routeName - The name of the route, must be low cardinality
* @returns The span name and attributes for the HTTP operation
*/
function getHttpSpanDetailsFromUrlObject(
urlObject,
kind,
spanOrigin,
request,
routeName,
) {
const attributes = {
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin,
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
};
if (routeName) {
// This is based on https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name
attributes[kind === 'server' ? 'http.route' : 'url.template'] = routeName;
attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';
}
if (request?.method) {
attributes[SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD] = request.method.toUpperCase();
}
if (urlObject) {
if (urlObject.search) {
attributes['url.query'] = urlObject.search;
}
if (urlObject.hash) {
attributes['url.fragment'] = urlObject.hash;
}
if (urlObject.pathname) {
attributes['url.path'] = urlObject.pathname;
if (urlObject.pathname === '/') {
attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';
}
}
if (!isURLObjectRelative(urlObject)) {
attributes[SEMANTIC_ATTRIBUTE_URL_FULL] = urlObject.href;
if (urlObject.port) {
attributes['url.port'] = urlObject.port;
}
if (urlObject.protocol) {
attributes['url.scheme'] = urlObject.protocol;
}
if (urlObject.hostname) {
attributes[kind === 'server' ? 'server.address' : 'url.domain'] = urlObject.hostname;
}
}
}
return [getHttpSpanNameFromUrlObject(urlObject, kind, request, routeName), attributes];
}
/**
* Parses string form of URL into an object

@@ -148,3 +235,3 @@ * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B

export { getSanitizedUrlString, getSanitizedUrlStringFromUrlObject, isURLObjectRelative, parseStringToURLObject, parseUrl, stripUrlQueryAndFragment };
export { getHttpSpanDetailsFromUrlObject, getSanitizedUrlString, getSanitizedUrlStringFromUrlObject, isURLObjectRelative, parseStringToURLObject, parseUrl, stripUrlQueryAndFragment };
//# sourceMappingURL=url.js.map
// This is a magic string replaced by rollup
const SDK_VERSION = "9.17.0" ;
const SDK_VERSION = "9.18.0" ;
export { SDK_VERSION };
//# sourceMappingURL=version.js.map

@@ -132,4 +132,15 @@ import { getAsyncContextStrategy } from '../asyncContext/index.js';

if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {
const { attributes, startTime, name, endTime, parentSpanId, status, links } = span;
const { attributes, startTime, name, endTime, status, links } = span;
// In preparation for the next major of OpenTelemetry, we want to support
// looking up the parent span id according to the new API
// In OTel v1, the parent span id is accessed as `parentSpanId`
// In OTel v2, the parent span id is accessed as `spanId` on the `parentSpanContext`
const parentSpanId =
'parentSpanId' in span
? span.parentSpanId
: 'parentSpanContext' in span
? (span.parentSpanContext )?.spanId
: undefined;
return {

@@ -136,0 +147,0 @@ span_id,

@@ -6,5 +6,4 @@ import { getAsyncContextStrategy } from '../asyncContext/index.js';

import '../tracing/errors.js';
import '../utils-hoist/debug-build.js';
import '../debug-build.js';
import { logger } from '../utils-hoist/logger.js';
import '../debug-build.js';
import { getActiveSpan, spanToTraceHeader } from './spanUtils.js';

@@ -11,0 +10,0 @@ import '../utils-hoist/time.js';

@@ -105,3 +105,3 @@ export { ClientClass as SentryCoreCurrentScopes } from './sdk';

export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, parseBaggageHeader, objectToBaggageHeader, } from './utils-hoist/baggage';
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, } from './utils-hoist/url';
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, getHttpSpanDetailsFromUrlObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, } from './utils-hoist/url';
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames, } from './utils-hoist/eventbuilder';

@@ -108,0 +108,0 @@ export { callFrameToStackFrame, watchdogTimer } from './utils-hoist/anr';

@@ -0,1 +1,2 @@

import { SpanAttributes } from '../types-hoist/span';
type PartialURL = {

@@ -35,3 +36,24 @@ host?: string;

export declare function getSanitizedUrlStringFromUrlObject(url: URLObject): string;
type PartialRequest = {
method?: string;
};
/**
* Takes a parsed URL object and returns a set of attributes for the span
* that represents the HTTP request for that url. This is used for both server
* and client http spans.
*
* Follows https://opentelemetry.io/docs/specs/semconv/http/.
*
* @param urlObject - see {@link parseStringToURLObject}
* @param kind - The type of HTTP operation (server or client)
* @param spanOrigin - The origin of the span
* @param request - The request object, see {@link PartialRequest}
* @param routeName - The name of the route, must be low cardinality
* @returns The span name and attributes for the HTTP operation
*/
export declare function getHttpSpanDetailsFromUrlObject(urlObject: URLObject | undefined, kind: 'server' | 'client', spanOrigin: string, request?: PartialRequest, routeName?: string): [
/*name*/ string,
/*attributes*/ SpanAttributes
];
/**
* Parses string form of URL into an object

@@ -38,0 +60,0 @@ * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B

@@ -105,3 +105,3 @@ export type { ClientClass as SentryCoreCurrentScopes } from './sdk';

export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, parseBaggageHeader, objectToBaggageHeader, } from './utils-hoist/baggage';
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, } from './utils-hoist/url';
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, getHttpSpanDetailsFromUrlObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, } from './utils-hoist/url';
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames, } from './utils-hoist/eventbuilder';

@@ -108,0 +108,0 @@ export { callFrameToStackFrame, watchdogTimer } from './utils-hoist/anr';

@@ -0,1 +1,2 @@

import type { SpanAttributes } from '../types-hoist/span';
type PartialURL = {

@@ -35,3 +36,21 @@ host?: string;

export declare function getSanitizedUrlStringFromUrlObject(url: URLObject): string;
type PartialRequest = {
method?: string;
};
/**
* Takes a parsed URL object and returns a set of attributes for the span
* that represents the HTTP request for that url. This is used for both server
* and client http spans.
*
* Follows https://opentelemetry.io/docs/specs/semconv/http/.
*
* @param urlObject - see {@link parseStringToURLObject}
* @param kind - The type of HTTP operation (server or client)
* @param spanOrigin - The origin of the span
* @param request - The request object, see {@link PartialRequest}
* @param routeName - The name of the route, must be low cardinality
* @returns The span name and attributes for the HTTP operation
*/
export declare function getHttpSpanDetailsFromUrlObject(urlObject: URLObject | undefined, kind: 'server' | 'client', spanOrigin: string, request?: PartialRequest, routeName?: string): [name: string, attributes: SpanAttributes];
/**
* Parses string form of URL into an object

@@ -38,0 +57,0 @@ * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B

{
"name": "@sentry/core",
"version": "9.17.0",
"version": "9.18.0",
"description": "Base implementation for all Sentry JavaScript SDKs",

@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet