Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-aws-sdk

Package Overview
Dependencies
Maintainers
3
Versions
40
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.34.1 to 0.34.2

2

build/src/aws-sdk.js

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

if (response.error) {
span.setAttribute(enums_1.AttributeNames.AWS_ERROR, response.error);
span.recordException(response.error);
}

@@ -155,0 +155,0 @@ else {

export declare enum AttributeNames {
AWS_ERROR = "aws.error",
AWS_OPERATION = "aws.operation",

@@ -4,0 +3,0 @@ AWS_REGION = "aws.region",

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

(function (AttributeNames) {
AttributeNames["AWS_ERROR"] = "aws.error";
AttributeNames["AWS_OPERATION"] = "aws.operation";

@@ -24,0 +23,0 @@ AttributeNames["AWS_REGION"] = "aws.region";

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

};
if (operation == 'BatchGetItem') {
if (operation === 'BatchGetItem') {
spanAttributes[semantic_conventions_1.SemanticAttributes.AWS_DYNAMODB_TABLE_NAMES] = Object.keys(normalizedRequest.commandInput.RequestItems);

@@ -37,0 +37,0 @@ }

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

export declare const VERSION = "0.34.1";
export declare const VERSION = "0.34.2";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.34.1';
exports.VERSION = '0.34.2';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-aws-sdk",
"version": "0.34.1",
"version": "0.34.2",
"description": "OpenTelemetry automatic instrumentation for the `aws-sdk` package",

@@ -50,4 +50,4 @@ "keywords": [

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.38.0",
"@opentelemetry/propagation-utils": "^0.29.3",
"@opentelemetry/instrumentation": "^0.39.1",
"@opentelemetry/propagation-utils": "^0.29.4",
"@opentelemetry/semantic-conventions": "^1.0.0"

@@ -63,3 +63,3 @@ },

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/contrib-test-utils": "^0.33.2",
"@opentelemetry/contrib-test-utils": "^0.33.3",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -72,7 +72,6 @@ "@types/mocha": "8.2.3",

"expect": "29.2.0",
"gts": "3.1.0",
"mocha": "7.2.0",
"nock": "13.2.1",
"nyc": "15.1.0",
"rimraf": "4.2.0",
"rimraf": "5.0.0",
"sinon": "15.0.1",

@@ -86,3 +85,3 @@ "test-all-versions": "5.0.1",

},
"gitHead": "f7183016487c876829abce6437bbe71f76b7538e"
"gitHead": "418b6f6d471b4b38507e8c6ef2916bee31ed2001"
}

@@ -74,8 +74,7 @@ # OpenTelemetry aws-sdk Instrumentation for Node.js

| `aws.request.id` | uuid | Request unique id, as returned from aws on response | "01234567-89ab-cdef-0123-456789abcdef" |
| `aws.error` | string | information about a service or networking error, as returned from AWS | "UriParameterError: Expected uri parameter to have length >= 1, but found "" for params.Bucket" |
### Custom User Attributes
The instrumentation user can configure a `preRequestHook` function which will be called before each request, with a normalized request object (across v2 and v3) and the corresponding span.
This hook can be used to add custom attributes to the span with any logic.
The instrumentation user can configure a `preRequestHook` function which will be called before each request, with a normalized request object (across v2 and v3) and the corresponding span.
This hook can be used to add custom attributes to the span with any logic.
For example, user can add interesting attributes from the `request.params`, and write custom logic based on the service and operation.

@@ -82,0 +81,0 @@ Usage example:

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