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

aws-xray-sdk-core

Package Overview
Dependencies
Maintainers
18
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-xray-sdk-core - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

lib/aws-xray.d.ts

@@ -42,3 +42,3 @@ import * as ec2Plugin from './segments/plugins/ec2_plugin';

export type { captureAWSClient as captureAWSv3Client } from './patchers/aws3_p';
export function captureAWSv3Client<T>(client: T, manualSeg?: SegmentLike): T;

@@ -45,0 +45,0 @@ export { captureHTTPs, captureHTTPsGlobal } from './patchers/http_p';

@@ -183,11 +183,4 @@ var contextUtils = require('./context_utils');

/**
* @param {AWSv3.Service} service - An instance of a AWS SDK v3 service to wrap.
* @param {Segment|Subsegment} segment - Optional segment for manual mode.
* @memberof AWSXRay
* @function
* @see module:aws3_p.captureAWSClient
*/
captureAWSv3Client: require('./patchers/aws3_p').captureAWSClient,
captureAWSv3Client: (client) => client,

@@ -194,0 +187,0 @@ /**

import * as http from 'http';
import { Segment, SegmentLike } from '../../aws-xray';

@@ -10,4 +9,2 @@ declare class Subsegment {

subsegments?: Array<Subsegment>;
parent: SegmentLike;
segment: Segment;

@@ -14,0 +11,0 @@ constructor(name: string);

@@ -14,3 +14,2 @@ import Subsegment = require('./attributes/subsegment');

subsegments?: Array<Subsegment>;
notTraced?: boolean;

@@ -17,0 +16,0 @@ constructor(name: string, rootId?: string | null, parentId?: string | null);

{
"name": "aws-xray-sdk-core",
"version": "3.3.0",
"version": "3.3.1",
"description": "AWS X-Ray SDK for Javascript",

@@ -8,4 +8,3 @@ "author": "Amazon Web Services",

"Sandra McMullen <mcmuls@amazon.com>",
"William Armiros <armiros@amazon.com>",
"Moritz Onken <onken@netcubed.de>"
"William Armiros <armiros@amazon.com>"
],

@@ -22,3 +21,2 @@ "main": "lib/index.js",

"dependencies": {
"@aws-sdk/service-error-classification": "^3.4.1",
"@types/cls-hooked": "^4.2.2",

@@ -47,3 +45,3 @@ "atomic-batcher": "^1.0.2",

"repository": "https://github.com/aws/aws-xray-sdk-node/tree/master/packages/core",
"gitHead": "2c4459a0ea06912259bd627d34cb99e46878538f"
"gitHead": "8fa31d45c6276912f36de779f376c7cddb08446e"
}

@@ -468,4 +468,2 @@

This is only available for AWS SDK v2 due to the service-oriented architecture of AWS SDK v3.
```js

@@ -479,20 +477,3 @@ var AWS = captureAWS(require('aws-sdk'));

AWS SDK v3
```js
import { S3, PutObjectCommand } from '@aws-sdk/client-s3';
const s3 = AWSXRay.captureAWSv3Client(new S3({}));
await s3.send(new PutObjectCommand({
Bucket: bucketName,
Key: keyName,
Body: 'Hello!',
}));
```
AWS SDK v2
```js
var s3 = AWSXRay.captureAWSClient(new AWS.S3());

@@ -647,24 +628,3 @@

AWS SDK v3
You must re-capture the client every time the subsegment is attached
to a new parent.
```js
import { S3, PutObjectCommand } from '@aws-sdk/client-s3';
// subsegment is an optional parameter that is required for manual mode
// and can be omitted in automatic mode (e.g. inside a Lambda function).
const s3 = AWSXRay.captureAWSv3Client(new S3({}), subsegment);
await s3.send(new PutObjectCommand({
Bucket: bucketName,
Key: keyName,
Body: 'Hello!',
}));
```
AWS SDK v2
```js
var s3 = AWSXRay.captureAWSClient(new AWS.S3());

@@ -685,4 +645,2 @@ var params = {

This is only available for AWS SDK v2 due to the service-oriented architecture of AWS SDK v3.
```js

@@ -689,0 +647,0 @@ var AWS = captureAWS(require('aws-sdk'));

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