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

@opentelemetry/instrumentation-aws-sdk

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-aws-sdk - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

1

build/src/services/MessageAttributes.d.ts

@@ -21,3 +21,4 @@ import { TextMapGetter, TextMapSetter } from '@opentelemetry/api';

export declare const extractPropagationContext: (message: SQS.Message, sqsExtractContextPropagationFromPayload: boolean | undefined) => AwsSdkContextObject | undefined;
export declare const addPropagationFieldsToAttributeNames: (messageAttributeNames: string[] | undefined, propagationFields: string[]) => string[];
export {};
//# sourceMappingURL=MessageAttributes.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractPropagationContext = exports.injectPropagationContext = exports.contextGetter = exports.contextSetter = exports.MAX_MESSAGE_ATTRIBUTES = void 0;
exports.addPropagationFieldsToAttributeNames = exports.extractPropagationContext = exports.injectPropagationContext = exports.contextGetter = exports.contextSetter = exports.MAX_MESSAGE_ATTRIBUTES = void 0;
/*

@@ -71,2 +71,8 @@ * Copyright The OpenTelemetry Authors

exports.extractPropagationContext = extractPropagationContext;
const addPropagationFieldsToAttributeNames = (messageAttributeNames = [], propagationFields) => {
return messageAttributeNames.length
? Array.from(new Set([...messageAttributeNames, ...propagationFields]))
: propagationFields;
};
exports.addPropagationFieldsToAttributeNames = addPropagationFieldsToAttributeNames;
//# sourceMappingURL=MessageAttributes.js.map

4

build/src/services/sqs.js

@@ -98,3 +98,2 @@ "use strict";

requestPreSpanHook(request) {
var _a;
const queueUrl = this.extractQueueUrl(request.commandInput);

@@ -119,3 +118,4 @@ const queueName = this.extractQueueNameFromUrl(queueUrl);

semantic_conventions_1.MessagingOperationValues.RECEIVE;
request.commandInput.MessageAttributeNames = ((_a = request.commandInput.MessageAttributeNames) !== null && _a !== void 0 ? _a : []).concat(api_1.propagation.fields());
request.commandInput.MessageAttributeNames =
MessageAttributes_1.addPropagationFieldsToAttributeNames(request.commandInput.MessageAttributeNames, api_1.propagation.fields());
}

@@ -122,0 +122,0 @@ break;

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

export declare const VERSION = "0.8.0";
export declare const VERSION = "0.8.1";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.8.0';
exports.VERSION = '0.8.1';
//# sourceMappingURL=version.js.map
# Changelog
## [0.8.1](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-aws-sdk-v0.8.0...instrumentation-aws-sdk-v0.8.1) (2022-06-17)
### Bug Fixes
* **aws-sdk:** avoid repeating MessageAttributeNames in sqs receiveMessage ([#1044](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1044)) ([4b4ded6](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/4b4ded6e5b781b9a9cb2c55102ec0949da062511))
## [0.8.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-aws-sdk-v0.7.0...instrumentation-aws-sdk-v0.8.0) (2022-06-08)

@@ -4,0 +11,0 @@

{
"name": "@opentelemetry/instrumentation-aws-sdk",
"version": "0.8.0",
"version": "0.8.1",
"description": "OpenTelemetry automatic instrumentation for the `aws-sdk` package",

@@ -75,5 +75,5 @@ "keywords": [

"rimraf": "3.0.2",
"sinon": "13.0.1",
"sinon": "14.0.0",
"test-all-versions": "5.0.1",
"ts-mocha": "8.0.0",
"ts-mocha": "10.0.0",
"typescript": "4.3.4"

@@ -84,3 +84,3 @@ },

},
"gitHead": "9633cf49c4099e97dd2a285d0399455e17a593e3"
"gitHead": "8f95ee79a8c24600c7190e03ff2adfdcac6d6d38"
}

@@ -8,4 +8,6 @@ # OpenTelemetry aws-sdk Instrumentation for Node.js

This module provides automatic instrumentation for [`aws-sdk` v2](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/) and [`@aws-sdk` v3](https://github.com/aws/aws-sdk-js-v3)
This module provides automatic instrumentation for the [`aws-sdk` v2](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/) and [`@aws-sdk` v3](https://github.com/aws/aws-sdk-js-v3) modules, which may be loaded using the [`@opentelemetry/sdk-trace-node`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node) package and is included in the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle.
If total installation size is not constrained, it is recommended to use the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle with [@opentelemetry/sdk-node](`https://www.npmjs.com/package/@opentelemetry/sdk-node`) for the most seamless instrumentation experience.
## Installation

@@ -12,0 +14,0 @@

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