Socket
Socket
Sign inDemoInstall

@sentry/types

Package Overview
Dependencies
Maintainers
11
Versions
466
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 8.0.0-alpha.1 to 8.0.0-alpha.2

types-ts3.8/spanStatus.d.ts

2

package.json
{
"name": "@sentry/types",
"version": "8.0.0-alpha.1",
"version": "8.0.0-alpha.2",
"description": "Types for all Sentry JavaScript SDKs",

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

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

*/
on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse | void) => void): void;
on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void): void;
/**

@@ -197,9 +197,2 @@ * Register a callback before a breadcrumb is added.

/**
* Register a callback when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
* The option argument may be mutated to drop the span.
*/
on(hook: 'otelSpanEnd', callback: (otelSpan: unknown, mutableOptions: {
drop: boolean;
}) => void): void;
/**
* Register a callback when a Feedback event has been prepared.

@@ -250,3 +243,3 @@ * This should be used to mutate the event. The options argument can hint

emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;
emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse | void): void;
emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;
/**

@@ -261,10 +254,2 @@ * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.

/**
* Fire a hook for when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
* Expects the OTEL span & as second argument, and an option object as third argument.
* The option argument may be mutated to drop the span.
*/
emit(hook: 'otelSpanEnd', otelSpan: unknown, mutableOptions: {
drop: boolean;
}): void;
/**
* Fire a hook event for after preparing a feedback event. Events to be given

@@ -271,0 +256,0 @@ * a feedback event as the second argument, and an optional options object as

@@ -14,3 +14,3 @@ import { Attachment } from './attachment';

import { SeverityLevel } from './severity';
import { MetricSummary, Span, SpanJSON } from './span';
import { MetricSummary, SpanJSON } from './span';
import { Thread } from './thread';

@@ -54,3 +54,3 @@ import { TransactionSource } from './transaction';

type?: EventType;
spans?: Span[];
spans?: Partial<SpanJSON>[];
measurements?: Measurements;

@@ -92,12 +92,2 @@ debug_meta?: DebugMeta;

}
/**
* Represents the event that's sent in an event envelope, omitting interfaces that are no longer representative after
* event serialization.
*/
export interface SerializedEvent extends Pick<Event, Exclude<keyof Event, 'spans'>> {
/**
* POJO objects of spans belonging to this event.
*/
spans?: SpanJSON[];
}
//# sourceMappingURL=event.d.ts.map

@@ -11,3 +11,3 @@ export { Attachment } from './attachment';

export { ExtendedError } from './error';
export { Event, EventHint, EventType, ErrorEvent, TransactionEvent, SerializedEvent } from './event';
export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './event';
export { EventProcessor } from './eventprocessor';

@@ -34,2 +34,3 @@ export { Exception } from './exception';

export { Span, SpanContext, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, MetricSummary, } from './span';
export { SpanStatus } from './spanStatus';
export { StackFrame } from './stackframe';

@@ -36,0 +37,0 @@ export { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './stacktrace';

import { Primitive } from './misc';
import { HrTime } from './opentelemetry';
import { SpanStatus } from './spanStatus';
import { TransactionSource } from './transaction';

@@ -160,7 +161,5 @@ type SpanOriginType = 'manual' | 'auto';

/**
* Sets the status attribute on the current span
* See: {@sentry/core SpanStatusType} for possible values
* @param status http code used to set the status
* Sets the status attribute on the current span.
*/
setStatus(status: string): this;
setStatus(status: SpanStatus): this;
/**

@@ -167,0 +166,0 @@ * Update the name of the span.

@@ -43,6 +43,2 @@ import { Primitive } from './misc';

/**
* @deprecated Use `span.setStatus()` instead.
*/
status?: string;
/**
* @deprecated Use `scope` instead.

@@ -49,0 +45,0 @@ */

@@ -22,3 +22,3 @@ import { Client } from './client';

export interface Transport {
send(request: Envelope): PromiseLike<void | TransportMakeRequestResponse>;
send(request: Envelope): PromiseLike<TransportMakeRequestResponse>;
flush(timeout?: number): PromiseLike<boolean>;

@@ -25,0 +25,0 @@ }

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

*/
on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse | void) => void): void;
on(hook: 'afterSendEvent', callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void): void;
/**

@@ -197,9 +197,2 @@ * Register a callback before a breadcrumb is added.

/**
* Register a callback when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
* The option argument may be mutated to drop the span.
*/
on(hook: 'otelSpanEnd', callback: (otelSpan: unknown, mutableOptions: {
drop: boolean;
}) => void): void;
/**
* Register a callback when a Feedback event has been prepared.

@@ -250,3 +243,3 @@ * This should be used to mutate the event. The options argument can hint

emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;
emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse | void): void;
emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;
/**

@@ -261,10 +254,2 @@ * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.

/**
* Fire a hook for when an OpenTelemetry span is ended (in @sentry/opentelemetry-node).
* Expects the OTEL span & as second argument, and an option object as third argument.
* The option argument may be mutated to drop the span.
*/
emit(hook: 'otelSpanEnd', otelSpan: unknown, mutableOptions: {
drop: boolean;
}): void;
/**
* Fire a hook event for after preparing a feedback event. Events to be given

@@ -271,0 +256,0 @@ * a feedback event as the second argument, and an optional options object as

@@ -14,3 +14,3 @@ import type { Attachment } from './attachment';

import type { SeverityLevel } from './severity';
import type { MetricSummary, Span, SpanJSON } from './span';
import type { MetricSummary, SpanJSON } from './span';
import type { Thread } from './thread';

@@ -54,3 +54,3 @@ import type { TransactionSource } from './transaction';

type?: EventType;
spans?: Span[];
spans?: Partial<SpanJSON>[];
measurements?: Measurements;

@@ -92,12 +92,2 @@ debug_meta?: DebugMeta;

}
/**
* Represents the event that's sent in an event envelope, omitting interfaces that are no longer representative after
* event serialization.
*/
export interface SerializedEvent extends Omit<Event, 'spans'> {
/**
* POJO objects of spans belonging to this event.
*/
spans?: SpanJSON[];
}
//# sourceMappingURL=event.d.ts.map

@@ -11,3 +11,3 @@ export type { Attachment } from './attachment';

export type { ExtendedError } from './error';
export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent, SerializedEvent } from './event';
export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './event';
export type { EventProcessor } from './eventprocessor';

@@ -34,2 +34,3 @@ export type { Exception } from './exception';

export type { Span, SpanContext, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, MetricSummary, } from './span';
export type { SpanStatus } from './spanStatus';
export type { StackFrame } from './stackframe';

@@ -36,0 +37,0 @@ export type { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './stacktrace';

import type { Primitive } from './misc';
import type { HrTime } from './opentelemetry';
import type { SpanStatus } from './spanStatus';
import type { TransactionSource } from './transaction';

@@ -160,7 +161,5 @@ type SpanOriginType = 'manual' | 'auto';

/**
* Sets the status attribute on the current span
* See: {@sentry/core SpanStatusType} for possible values
* @param status http code used to set the status
* Sets the status attribute on the current span.
*/
setStatus(status: string): this;
setStatus(status: SpanStatus): this;
/**

@@ -167,0 +166,0 @@ * Update the name of the span.

@@ -43,6 +43,2 @@ import type { Primitive } from './misc';

/**
* @deprecated Use `span.setStatus()` instead.
*/
status?: string;
/**
* @deprecated Use `scope` instead.

@@ -49,0 +45,0 @@ */

@@ -22,3 +22,3 @@ import type { Client } from './client';

export interface Transport {
send(request: Envelope): PromiseLike<void | TransportMakeRequestResponse>;
send(request: Envelope): PromiseLike<TransportMakeRequestResponse>;
flush(timeout?: number): PromiseLike<boolean>;

@@ -25,0 +25,0 @@ }

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