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
307
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.92.0 to 7.93.0

11

cjs/awslambda.js

@@ -14,2 +14,3 @@ var {

const perf_hooks = require('perf_hooks');
const core = require('@sentry/core');
const awsservices = require('./awsservices.js');

@@ -166,3 +167,6 @@ const debugBuild = require('./debug-build.js');

function enhanceScopeWithTransactionData(scope, context) {
scope.setTransactionName(context.functionName);
scope.addEventProcessor(event => {
event.transaction = context.functionName;
return event;
});
scope.setTag('server_name', process.env._AWS_XRAY_DAEMON_ADDRESS || process.env.SENTRY_NAME || os.hostname());

@@ -292,5 +296,4 @@ scope.setTag('url', `awslambda:///${context.functionName}`);

...continueTraceContext,
metadata: {
...continueTraceContext.metadata,
source: 'component',
attributes: {
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component',
},

@@ -297,0 +300,0 @@ },

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

const scope = Sentry.getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();

@@ -51,2 +52,3 @@ const req = orig.call(this, operation, params);

if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({

@@ -53,0 +55,0 @@ description: describe(this, operation, params),

@@ -41,3 +41,3 @@ var {

origin: 'auto.function.serverless.gcp_cloud_event',
metadata: { source: 'component' },
attributes: { [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component' },
},

@@ -44,0 +44,0 @@ span => {

@@ -44,3 +44,3 @@ var {

origin: 'auto.function.serverless.gcp_event',
metadata: { source: 'component' },
attributes: { [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component' },
},

@@ -47,0 +47,0 @@ span => {

@@ -67,6 +67,4 @@ var {

origin: 'auto.function.serverless.gcp_http',
metadata: {
...continueTraceContext.metadata,
source: 'route',
attributes: {
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
},

@@ -73,0 +71,0 @@ },

@@ -91,4 +91,6 @@ var {

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({

@@ -95,0 +97,0 @@ description: `${callType} ${methodName}`,

@@ -44,5 +44,7 @@ Object.defineProperty(exports, '__esModule', { value: true });

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({

@@ -49,0 +51,0 @@ description: `${httpMethod} ${reqOpts.uri}`,

@@ -11,2 +11,3 @@ import { _optionalChain } from '@sentry/utils';

import { performance } from 'perf_hooks';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
import { AWSServices } from './awsservices.js';

@@ -163,3 +164,6 @@ import { DEBUG_BUILD } from './debug-build.js';

function enhanceScopeWithTransactionData(scope, context) {
scope.setTransactionName(context.functionName);
scope.addEventProcessor(event => {
event.transaction = context.functionName;
return event;
});
scope.setTag('server_name', process.env._AWS_XRAY_DAEMON_ADDRESS || process.env.SENTRY_NAME || hostname());

@@ -289,5 +293,4 @@ scope.setTag('url', `awslambda:///${context.functionName}`);

...continueTraceContext,
metadata: {
...continueTraceContext.metadata,
source: 'component',
attributes: {
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component',
},

@@ -294,0 +297,0 @@ },

@@ -44,2 +44,3 @@ import { getCurrentScope } from '@sentry/node';

const scope = getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();

@@ -49,2 +50,3 @@ const req = orig.call(this, operation, params);

if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({

@@ -51,0 +53,0 @@ description: describe(this, operation, params),

import { _optionalChain } from '@sentry/utils';
import { handleCallbackErrors } from '@sentry/core';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, handleCallbackErrors } from '@sentry/core';
import { startSpanManual, getCurrentScope, captureException, flush } from '@sentry/node';

@@ -36,3 +36,3 @@ import { logger } from '@sentry/utils';

origin: 'auto.function.serverless.gcp_cloud_event',
metadata: { source: 'component' },
attributes: { [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component' },
},

@@ -39,0 +39,0 @@ span => {

import { _optionalChain } from '@sentry/utils';
import { handleCallbackErrors } from '@sentry/core';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, handleCallbackErrors } from '@sentry/core';
import { startSpanManual, getCurrentScope, captureException, flush } from '@sentry/node';

@@ -39,3 +39,3 @@ import { logger } from '@sentry/utils';

origin: 'auto.function.serverless.gcp_event',
metadata: { source: 'component' },
attributes: { [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component' },
},

@@ -42,0 +42,0 @@ span => {

import { _optionalChain } from '@sentry/utils';
import { Transaction, handleCallbackErrors } from '@sentry/core';
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Transaction, handleCallbackErrors } from '@sentry/core';
import { continueTrace, startSpanManual, getCurrentScope, flush, captureException } from '@sentry/node';

@@ -62,6 +62,4 @@ import { stripUrlQueryAndFragment, isString, logger } from '@sentry/utils';

origin: 'auto.function.serverless.gcp_http',
metadata: {
...continueTraceContext.metadata,
source: 'route',
attributes: {
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
},

@@ -68,0 +66,0 @@ },

@@ -86,4 +86,6 @@ import { _optionalChain } from '@sentry/utils';

const scope = getCurrentScope();
// eslint-disable-next-line deprecation/deprecation
const transaction = scope.getTransaction();
if (transaction) {
// eslint-disable-next-line deprecation/deprecation
span = transaction.startChild({

@@ -90,0 +92,0 @@ description: `${callType} ${methodName}`,

@@ -42,5 +42,7 @@ import { getCurrentScope } from '@sentry/node';

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({

@@ -47,0 +49,0 @@ description: `${httpMethod} ${reqOpts.uri}`,

{
"name": "@sentry/serverless",
"version": "7.92.0",
"version": "7.93.0",
"description": "Official Sentry SDK for various serverless solutions",

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

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

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

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