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

@sentry/types

Package Overview
Dependencies
Maintainers
11
Versions
484
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.7.0-beta.0 to 5.7.0-beta.1

5

dist/event.d.ts

@@ -6,2 +6,3 @@ import { Breadcrumb } from './breadcrumb';

import { Severity } from './severity';
import { Span } from './span';
import { Stacktrace } from './stacktrace';

@@ -14,2 +15,3 @@ import { User } from './user';

timestamp?: number;
start_timestamp?: number;
level?: Severity;

@@ -45,5 +47,6 @@ platform?: string;

type?: EventType;
spans?: Span[];
}
/** JSDoc */
export declare type EventType = 'none';
export declare type EventType = 'transaction';
/** JSDoc */

@@ -50,0 +53,0 @@ export interface EventHint {

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

import { Severity } from './severity';
import { Span, SpanContext } from './span';
import { User } from './user';

@@ -161,3 +162,14 @@ /**

};
/**
* 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;
}
//# sourceMappingURL=hub.d.ts.map

2

dist/index.d.ts

@@ -19,3 +19,3 @@ export { Breadcrumb, BreadcrumbHint } from './breadcrumb';

export { Severity } from './severity';
export { Span } from './span';
export { Span, SpanContext } from './span';
export { StackFrame } from './stackframe';

@@ -22,0 +22,0 @@ export { Stacktrace } from './stacktrace';

@@ -73,6 +73,2 @@ import { Breadcrumb } from './breadcrumb';

setSpan(span?: Span): this;
/**
* Starts a new Span.
*/
startSpan(): Span;
/** Clears the current scope and resets its properties. */

@@ -79,0 +75,0 @@ clear(): this;

@@ -5,5 +5,54 @@ /** 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;
/**
* Completion status of the Span.
*/
status?: boolean;
/**
* 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,2 +6,3 @@ import { Breadcrumb } from './breadcrumb';

import { Severity } from './severity';
import { Span } from './span';
import { Stacktrace } from './stacktrace';

@@ -14,2 +15,3 @@ import { User } from './user';

timestamp?: number;
start_timestamp?: number;
level?: Severity;

@@ -45,5 +47,6 @@ platform?: string;

type?: EventType;
spans?: Span[];
}
/** JSDoc */
export declare type EventType = 'none';
export declare type EventType = 'transaction';
/** JSDoc */

@@ -50,0 +53,0 @@ export interface EventHint {

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

import { Severity } from './severity';
import { Span, SpanContext } from './span';
import { User } from './user';

@@ -161,3 +162,14 @@ /**

};
/**
* 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;
}
//# sourceMappingURL=hub.d.ts.map

@@ -19,3 +19,3 @@ export { Breadcrumb, BreadcrumbHint } from './breadcrumb';

export { Severity } from './severity';
export { Span } from './span';
export { Span, SpanContext } from './span';
export { StackFrame } from './stackframe';

@@ -22,0 +22,0 @@ export { Stacktrace } from './stacktrace';

@@ -73,6 +73,2 @@ import { Breadcrumb } from './breadcrumb';

setSpan(span?: Span): this;
/**
* Starts a new Span.
*/
startSpan(): Span;
/** Clears the current scope and resets its properties. */

@@ -79,0 +75,0 @@ clear(): this;

@@ -5,5 +5,54 @@ /** 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;
/**
* Completion status of the Span.
*/
status?: boolean;
/**
* 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.7.0-beta.0",
"version": "5.7.0-beta.1",
"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

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