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

@sentry/serverless

Package Overview
Dependencies
Maintainers
11
Versions
306
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/serverless - npm Package Compare versions

Comparing version 7.93.0 to 7.94.1

16

cjs/awsservices.js

@@ -45,15 +45,9 @@ Object.defineProperty(exports, '__esModule', { value: true });

let span;
const scope = Sentry.getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
const req = orig.call(this, operation, params);
req.on('afterBuild', () => {
if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: describe(this, operation, params),
op: 'http.client',
origin: 'auto.http.serverless',
});
}
span = Sentry.startInactiveSpan({
name: describe(this, operation, params),
op: 'http.client',
origin: 'auto.http.serverless',
});
});

@@ -60,0 +54,0 @@ req.on('complete', () => {

@@ -89,14 +89,7 @@ var {

}
let span;
const scope = Sentry.getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: `${callType} ${methodName}`,
op: `grpc.${serviceIdentifier}`,
origin: 'auto.grpc.serverless',
});
}
const span = Sentry.startInactiveSpan({
name: `${callType} ${methodName}`,
op: `grpc.${serviceIdentifier}`,
origin: 'auto.grpc.serverless',
});
ret.on('status', () => {

@@ -103,0 +96,0 @@ if (span) {

@@ -42,15 +42,8 @@ Object.defineProperty(exports, '__esModule', { value: true });

return function ( reqOpts, callback) {
let span;
const scope = Sentry.getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
if (transaction) {
const httpMethod = reqOpts.method || 'GET';
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: `${httpMethod} ${reqOpts.uri}`,
op: `http.client.${identifyService(this.apiEndpoint)}`,
origin: 'auto.http.serverless',
});
}
const httpMethod = reqOpts.method || 'GET';
const span = Sentry.startInactiveSpan({
name: `${httpMethod} ${reqOpts.uri}`,
op: `http.client.${identifyService(this.apiEndpoint)}`,
origin: 'auto.http.serverless',
});
orig.call(this, reqOpts, (...args) => {

@@ -57,0 +50,0 @@ if (span) {

@@ -53,2 +53,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

exports.setContext = Sentry.setContext;
exports.setCurrentClient = Sentry.setCurrentClient;
exports.setExtra = Sentry.setExtra;

@@ -65,4 +66,5 @@ exports.setExtras = Sentry.setExtras;

exports.startTransaction = Sentry.startTransaction;
exports.withIsolationScope = Sentry.withIsolationScope;
exports.withMonitor = Sentry.withMonitor;
exports.withScope = Sentry.withScope;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { getCurrentScope } from '@sentry/node';
import { startInactiveSpan } from '@sentry/node';
import { fill } from '@sentry/utils';

@@ -43,15 +43,9 @@

let span;
const scope = getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
const req = orig.call(this, operation, params);
req.on('afterBuild', () => {
if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: describe(this, operation, params),
op: 'http.client',
origin: 'auto.http.serverless',
});
}
span = startInactiveSpan({
name: describe(this, operation, params),
op: 'http.client',
origin: 'auto.http.serverless',
});
});

@@ -58,0 +52,0 @@ req.on('complete', () => {

import { _optionalChain } from '@sentry/utils';
import { getCurrentScope } from '@sentry/node';
import { startInactiveSpan } from '@sentry/node';
import { fill } from '@sentry/utils';

@@ -84,14 +84,7 @@

}
let span;
const scope = getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: `${callType} ${methodName}`,
op: `grpc.${serviceIdentifier}`,
origin: 'auto.grpc.serverless',
});
}
const span = startInactiveSpan({
name: `${callType} ${methodName}`,
op: `grpc.${serviceIdentifier}`,
origin: 'auto.grpc.serverless',
});
ret.on('status', () => {

@@ -98,0 +91,0 @@ if (span) {

@@ -1,2 +0,2 @@

import { getCurrentScope } from '@sentry/node';
import { startInactiveSpan } from '@sentry/node';
import { fill } from '@sentry/utils';

@@ -40,15 +40,8 @@

return function ( reqOpts, callback) {
let span;
const scope = getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
if (transaction) {
const httpMethod = reqOpts.method || 'GET';
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({
description: `${httpMethod} ${reqOpts.uri}`,
op: `http.client.${identifyService(this.apiEndpoint)}`,
origin: 'auto.http.serverless',
});
}
const httpMethod = reqOpts.method || 'GET';
const span = startInactiveSpan({
name: `${httpMethod} ${reqOpts.uri}`,
op: `http.client.${identifyService(this.apiEndpoint)}`,
origin: 'auto.http.serverless',
});
orig.call(this, reqOpts, (...args) => {

@@ -55,0 +48,0 @@ if (span) {

@@ -6,3 +6,3 @@ import * as awslambda from './awslambda.js';

export { AWSServices } from './awsservices.js';
export { DEFAULT_USER_INCLUDES, Handlers, Hub, Integrations, NodeClient, SDK_VERSION, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, addRequestDataToEvent, autoDiscoverNodePerformanceMonitoringIntegrations, captureCheckIn, captureEvent, captureException, captureMessage, close, configureScope, continueTrace, createTransport, deepReadDirSync, defaultIntegrations, defaultStackParser, extractRequestData, flush, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getHubFromCarrier, getIsolationScope, getSentryRelease, init, lastEventId, makeMain, makeNodeTransport, setContext, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, startActiveSpan, startInactiveSpan, startSpan, startSpanManual, startTransaction, withMonitor, withScope } from '@sentry/node';
export { DEFAULT_USER_INCLUDES, Handlers, Hub, Integrations, NodeClient, SDK_VERSION, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, addRequestDataToEvent, autoDiscoverNodePerformanceMonitoringIntegrations, captureCheckIn, captureEvent, captureException, captureMessage, close, configureScope, continueTrace, createTransport, deepReadDirSync, defaultIntegrations, defaultStackParser, extractRequestData, flush, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getHubFromCarrier, getIsolationScope, getSentryRelease, init, lastEventId, makeMain, makeNodeTransport, setContext, setCurrentClient, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, startActiveSpan, startInactiveSpan, startSpan, startSpanManual, startTransaction, withIsolationScope, withMonitor, withScope } from '@sentry/node';
//# sourceMappingURL=index.js.map
{
"name": "@sentry/serverless",
"version": "7.93.0",
"version": "7.94.1",
"description": "Official Sentry SDK for various serverless solutions",

@@ -32,6 +32,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.93.0",
"@sentry/node": "7.93.0",
"@sentry/types": "7.93.0",
"@sentry/utils": "7.93.0",
"@sentry/core": "7.94.1",
"@sentry/node": "7.94.1",
"@sentry/types": "7.94.1",
"@sentry/utils": "7.94.1",
"@types/aws-lambda": "^8.10.62",

@@ -38,0 +38,0 @@ "@types/express": "^4.17.14"

@@ -5,3 +5,3 @@ import * as AWSLambda from './awslambda';

export { AWSServices } from './awsservices';
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addGlobalEventProcessor, addEventProcessor, addIntegration, autoDiscoverNodePerformanceMonitoringIntegrations, captureEvent, captureException, captureMessage, captureCheckIn, withMonitor, configureScope, createTransport, getActiveTransaction, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getHubFromCarrier, makeMain, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope, NodeClient, makeNodeTransport, close, defaultIntegrations, defaultStackParser, flush, getSentryRelease, init, lastEventId, DEFAULT_USER_INCLUDES, addRequestDataToEvent, extractRequestData, deepReadDirSync, Handlers, Integrations, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, } from '@sentry/node';
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addGlobalEventProcessor, addEventProcessor, addIntegration, autoDiscoverNodePerformanceMonitoringIntegrations, captureEvent, captureException, captureMessage, captureCheckIn, withMonitor, configureScope, createTransport, getActiveTransaction, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getHubFromCarrier, makeMain, setCurrentClient, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope, withIsolationScope, NodeClient, makeNodeTransport, close, defaultIntegrations, defaultStackParser, flush, getSentryRelease, init, lastEventId, DEFAULT_USER_INCLUDES, addRequestDataToEvent, extractRequestData, deepReadDirSync, Handlers, Integrations, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, } from '@sentry/node';
//# sourceMappingURL=index.d.ts.map

@@ -5,3 +5,3 @@ import * as AWSLambda from './awslambda';

export { AWSServices } from './awsservices';
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addGlobalEventProcessor, addEventProcessor, addIntegration, autoDiscoverNodePerformanceMonitoringIntegrations, captureEvent, captureException, captureMessage, captureCheckIn, withMonitor, configureScope, createTransport, getActiveTransaction, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getHubFromCarrier, makeMain, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope, NodeClient, makeNodeTransport, close, defaultIntegrations, defaultStackParser, flush, getSentryRelease, init, lastEventId, DEFAULT_USER_INCLUDES, addRequestDataToEvent, extractRequestData, deepReadDirSync, Handlers, Integrations, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, } from '@sentry/node';
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addGlobalEventProcessor, addEventProcessor, addIntegration, autoDiscoverNodePerformanceMonitoringIntegrations, captureEvent, captureException, captureMessage, captureCheckIn, withMonitor, configureScope, createTransport, getActiveTransaction, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getHubFromCarrier, makeMain, setCurrentClient, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope, withIsolationScope, NodeClient, makeNodeTransport, close, defaultIntegrations, defaultStackParser, flush, getSentryRelease, init, lastEventId, DEFAULT_USER_INCLUDES, addRequestDataToEvent, extractRequestData, deepReadDirSync, Handlers, Integrations, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, } from '@sentry/node';
//# sourceMappingURL=index.d.ts.map

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