Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/types

Package Overview
Dependencies
Maintainers
13
Versions
486
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/types - npm Package Compare versions

Comparing version 5.14.2 to 5.15.0

2

dist/client.d.ts

@@ -65,3 +65,5 @@ import { Dsn } from './dsn';

getIntegration<T extends Integration>(integartion: IntegrationClass<T>): T | null;
/** This is an internal function to setup all integrations that should run on the client */
setupIntegrations(): void;
}
//# sourceMappingURL=client.d.ts.map

@@ -66,3 +66,10 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb';

sampleRate?: number;
/** A global sample rate to apply to all transactions (0 - 1). */
/**
* Sample rate to determine trace sampling.
*
* 0.0 = 0% chance of instrumenting
* 1.0 = 100% chance of instrumenting
*
* Default: 0.0
*/
tracesSampleRate?: number;

@@ -69,0 +76,0 @@ /** Attaches stacktraces to pure capture message / log integrations */

@@ -8,5 +8,34 @@ /** Span holding trace_id, span_id */

/** Convert the object to JSON for w. spans array info only */
getTraceContext(): object;
getTraceContext(): {
data?: {
[key: string]: any;
};
description?: string;
op?: string;
parent_span_id?: string;
span_id: string;
status?: string;
tags?: {
[key: string]: string;
};
trace_id: string;
};
/** Convert the object to JSON */
toJSON(): object;
toJSON(): {
data?: {
[key: string]: any;
};
description?: string;
op?: string;
parent_span_id?: string;
sampled?: boolean;
span_id: string;
start_timestamp: number;
tags?: {
[key: string]: string;
};
timestamp?: number;
trace_id: string;
transaction?: string;
};
/**

@@ -35,5 +64,14 @@ * Sets the tag attribute on the current span

/**
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
* Also the `sampled` decision will be inherited.
*/
child(spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>): Span;
/**
* Determines whether span was successful (HTTP200)
*/
isSuccess(): boolean;
/**
* Determines if the span is transaction (root)
*/
isRootSpan(): boolean;
}

@@ -40,0 +78,0 @@ /** Interface holder all properties that can be set on a Span on creation. */

@@ -65,3 +65,5 @@ import { Dsn } from './dsn';

getIntegration<T extends Integration>(integartion: IntegrationClass<T>): T | null;
/** This is an internal function to setup all integrations that should run on the client */
setupIntegrations(): void;
}
//# sourceMappingURL=client.d.ts.map

@@ -66,3 +66,10 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb';

sampleRate?: number;
/** A global sample rate to apply to all transactions (0 - 1). */
/**
* Sample rate to determine trace sampling.
*
* 0.0 = 0% chance of instrumenting
* 1.0 = 100% chance of instrumenting
*
* Default: 0.0
*/
tracesSampleRate?: number;

@@ -69,0 +76,0 @@ /** Attaches stacktraces to pure capture message / log integrations */

@@ -8,5 +8,34 @@ /** Span holding trace_id, span_id */

/** Convert the object to JSON for w. spans array info only */
getTraceContext(): object;
getTraceContext(): {
data?: {
[key: string]: any;
};
description?: string;
op?: string;
parent_span_id?: string;
span_id: string;
status?: string;
tags?: {
[key: string]: string;
};
trace_id: string;
};
/** Convert the object to JSON */
toJSON(): object;
toJSON(): {
data?: {
[key: string]: any;
};
description?: string;
op?: string;
parent_span_id?: string;
sampled?: boolean;
span_id: string;
start_timestamp: number;
tags?: {
[key: string]: string;
};
timestamp?: number;
trace_id: string;
transaction?: string;
};
/**

@@ -35,5 +64,14 @@ * Sets the tag attribute on the current span

/**
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
* Also the `sampled` decision will be inherited.
*/
child(spanContext?: Pick<SpanContext, Exclude<keyof SpanContext, 'spanId' | 'sampled' | 'traceId' | 'parentSpanId'>>): Span;
/**
* Determines whether span was successful (HTTP200)
*/
isSuccess(): boolean;
/**
* Determines if the span is transaction (root)
*/
isRootSpan(): boolean;
}

@@ -40,0 +78,0 @@ /** Interface holder all properties that can be set on a Span on creation. */

2

package.json
{
"name": "@sentry/types",
"version": "5.14.2",
"version": "5.15.0",
"description": "Types 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc