@sentry/types
Advanced tools
Comparing version 5.14.2 to 5.15.0
@@ -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. */ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210459
2363
3