@sentry/types
Advanced tools
Comparing version 5.6.0-beta.4 to 5.6.0
@@ -6,3 +6,2 @@ import { Breadcrumb } from './breadcrumb'; | ||
import { Severity } from './severity'; | ||
import { Span } from './span'; | ||
import { Stacktrace } from './stacktrace'; | ||
@@ -15,3 +14,2 @@ import { User } from './user'; | ||
timestamp?: number; | ||
start_timestamp?: number; | ||
level?: Severity; | ||
@@ -47,6 +45,5 @@ platform?: string; | ||
type?: EventType; | ||
spans?: Span[]; | ||
} | ||
/** JSDoc */ | ||
export declare type EventType = 'transaction'; | ||
export declare type EventType = 'none'; | ||
/** JSDoc */ | ||
@@ -53,0 +50,0 @@ export interface EventHint { |
@@ -7,3 +7,2 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import { Severity } from './severity'; | ||
import { Span, SpanContext } from './span'; | ||
import { User } from './user'; | ||
@@ -162,22 +161,3 @@ /** | ||
}; | ||
/** | ||
* This functions starts a span. If just a `SpanContext` is passed and there is already a Span | ||
* on the Scope, the created Span will have a reference to the one on the Scope. | ||
* If a Span is on the current Scope it is considered a `transaction`. | ||
* When using the second parameter it will set the created Span on the Scope (replacing whats there). | ||
* This can be used as a shortcut to not set it manually on the Scope. | ||
* | ||
* @param spanContext Properties with which the span should be created | ||
* @param bindOnScope Determines if the started span will be set on the Scope | ||
*/ | ||
startSpan(spanContext?: SpanContext, bindOnScope?: boolean): Span; | ||
/** | ||
* This finishes the passed `Span`. If the `Span` has the property `transaction` set and it's bound on the | ||
* current Scope, an `transaction` Event will be sent to Sentry containing all finished Spans inbetween. | ||
* Returns either an `event.id` or `undefined` in case event wasn't sent. | ||
* | ||
* @param span `Span` instance that was created by {@link startSpan} | ||
*/ | ||
finishSpan(span?: Span): string | undefined; | ||
} | ||
//# sourceMappingURL=hub.d.ts.map |
@@ -19,3 +19,3 @@ export { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
export { Severity } from './severity'; | ||
export { Span, SpanContext } from './span'; | ||
export { Span } from './span'; | ||
export { StackFrame } from './stackframe'; | ||
@@ -22,0 +22,0 @@ export { Stacktrace } from './stacktrace'; |
@@ -6,3 +6,3 @@ /** JSDoc */ | ||
data?: { | ||
[key: string]: string; | ||
[key: string]: string | boolean; | ||
}; | ||
@@ -9,0 +9,0 @@ synthetic?: boolean; |
@@ -73,2 +73,6 @@ import { Breadcrumb } from './breadcrumb'; | ||
setSpan(span?: Span): this; | ||
/** | ||
* Starts a new Span. | ||
*/ | ||
startSpan(): Span; | ||
/** Clears the current scope and resets its properties. */ | ||
@@ -75,0 +79,0 @@ clear(): this; |
@@ -5,50 +5,5 @@ /** Span holding trace_id, span_id */ | ||
toTraceparent(): string; | ||
/** Convert the object to JSON for w. spans array info only */ | ||
getTraceContext(): object; | ||
/** Convert the object to JSON */ | ||
toJSON(): object; | ||
} | ||
/** Interface holder all properties that can be set on a Span on creation. */ | ||
export interface SpanContext { | ||
/** | ||
* Description of the Span. | ||
*/ | ||
description?: string; | ||
/** | ||
* Operation of the Span. | ||
*/ | ||
op?: string; | ||
/** | ||
* Parent Span ID | ||
*/ | ||
parentSpanId?: string; | ||
/** | ||
* Has the sampling decision been made? | ||
*/ | ||
sampled?: boolean; | ||
/** | ||
* Span ID | ||
*/ | ||
spanId?: string; | ||
/** | ||
* Trace ID | ||
*/ | ||
traceId?: string; | ||
/** | ||
* Transaction of the Span. | ||
*/ | ||
transaction?: string; | ||
/** | ||
* Tags of the Span. | ||
*/ | ||
tags?: { | ||
[key: string]: string; | ||
}; | ||
/** | ||
* Data of the Span. | ||
*/ | ||
data?: { | ||
[key: string]: any; | ||
}; | ||
} | ||
//# sourceMappingURL=span.d.ts.map |
@@ -6,3 +6,2 @@ import { Breadcrumb } from './breadcrumb'; | ||
import { Severity } from './severity'; | ||
import { Span } from './span'; | ||
import { Stacktrace } from './stacktrace'; | ||
@@ -15,3 +14,2 @@ import { User } from './user'; | ||
timestamp?: number; | ||
start_timestamp?: number; | ||
level?: Severity; | ||
@@ -47,6 +45,5 @@ platform?: string; | ||
type?: EventType; | ||
spans?: Span[]; | ||
} | ||
/** JSDoc */ | ||
export declare type EventType = 'transaction'; | ||
export declare type EventType = 'none'; | ||
/** JSDoc */ | ||
@@ -53,0 +50,0 @@ export interface EventHint { |
@@ -7,3 +7,2 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import { Severity } from './severity'; | ||
import { Span, SpanContext } from './span'; | ||
import { User } from './user'; | ||
@@ -162,22 +161,3 @@ /** | ||
}; | ||
/** | ||
* This functions starts a span. If just a `SpanContext` is passed and there is already a Span | ||
* on the Scope, the created Span will have a reference to the one on the Scope. | ||
* If a Span is on the current Scope it is considered a `transaction`. | ||
* When using the second parameter it will set the created Span on the Scope (replacing whats there). | ||
* This can be used as a shortcut to not set it manually on the Scope. | ||
* | ||
* @param spanContext Properties with which the span should be created | ||
* @param bindOnScope Determines if the started span will be set on the Scope | ||
*/ | ||
startSpan(spanContext?: SpanContext, bindOnScope?: boolean): Span; | ||
/** | ||
* This finishes the passed `Span`. If the `Span` has the property `transaction` set and it's bound on the | ||
* current Scope, an `transaction` Event will be sent to Sentry containing all finished Spans inbetween. | ||
* Returns either an `event.id` or `undefined` in case event wasn't sent. | ||
* | ||
* @param span `Span` instance that was created by {@link startSpan} | ||
*/ | ||
finishSpan(span?: Span): string | undefined; | ||
} | ||
//# sourceMappingURL=hub.d.ts.map |
@@ -19,3 +19,3 @@ export { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
export { Severity } from './severity'; | ||
export { Span, SpanContext } from './span'; | ||
export { Span } from './span'; | ||
export { StackFrame } from './stackframe'; | ||
@@ -22,0 +22,0 @@ export { Stacktrace } from './stacktrace'; |
@@ -6,3 +6,3 @@ /** JSDoc */ | ||
data?: { | ||
[key: string]: string; | ||
[key: string]: string | boolean; | ||
}; | ||
@@ -9,0 +9,0 @@ synthetic?: boolean; |
@@ -73,2 +73,6 @@ import { Breadcrumb } from './breadcrumb'; | ||
setSpan(span?: Span): this; | ||
/** | ||
* Starts a new Span. | ||
*/ | ||
startSpan(): Span; | ||
/** Clears the current scope and resets its properties. */ | ||
@@ -75,0 +79,0 @@ clear(): this; |
@@ -5,50 +5,5 @@ /** Span holding trace_id, span_id */ | ||
toTraceparent(): string; | ||
/** Convert the object to JSON for w. spans array info only */ | ||
getTraceContext(): object; | ||
/** Convert the object to JSON */ | ||
toJSON(): object; | ||
} | ||
/** Interface holder all properties that can be set on a Span on creation. */ | ||
export interface SpanContext { | ||
/** | ||
* Description of the Span. | ||
*/ | ||
description?: string; | ||
/** | ||
* Operation of the Span. | ||
*/ | ||
op?: string; | ||
/** | ||
* Parent Span ID | ||
*/ | ||
parentSpanId?: string; | ||
/** | ||
* Has the sampling decision been made? | ||
*/ | ||
sampled?: boolean; | ||
/** | ||
* Span ID | ||
*/ | ||
spanId?: string; | ||
/** | ||
* Trace ID | ||
*/ | ||
traceId?: string; | ||
/** | ||
* Transaction of the Span. | ||
*/ | ||
transaction?: string; | ||
/** | ||
* Tags of the Span. | ||
*/ | ||
tags?: { | ||
[key: string]: string; | ||
}; | ||
/** | ||
* Data of the Span. | ||
*/ | ||
data?: { | ||
[key: string]: any; | ||
}; | ||
} | ||
//# sourceMappingURL=span.d.ts.map |
{ | ||
"name": "@sentry/types", | ||
"version": "5.6.0-beta.4", | ||
"version": "5.6.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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
167018
1796