@opentelemetry/instrumentation-aws-sdk
Advanced tools
Comparing version 0.38.0 to 0.38.1
@@ -26,2 +26,3 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
const propwrap_1 = require("./propwrap"); | ||
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions"); | ||
@@ -48,5 +49,13 @@ const V3_CLIENT_CONFIG_KEY = Symbol('opentelemetry.instrumentation.aws-sdk.client.config'); | ||
]); | ||
// patch for @smithy/middleware-stack for aws-sdk packages v3.363.0+ | ||
const v3SmithyMiddlewareStackFile = new instrumentation_1.InstrumentationNodeModuleFile('@smithy/middleware-stack/dist-cjs/MiddlewareStack.js', ['>=1.0.1'], this.patchV3ConstructStack.bind(this), this.unpatchV3ConstructStack.bind(this)); | ||
const v3SmithyMiddlewareStack = new instrumentation_1.InstrumentationNodeModuleDefinition('@smithy/middleware-stack', ['>=2.0.0'], undefined, undefined, [v3SmithyMiddlewareStackFile]); | ||
// Patch for @smithy/middleware-stack for @aws-sdk/* packages v3.363.0+. | ||
// As of @smithy/middleware-stack@2.1.0 `constructStack` is only available | ||
// as a getter, so we cannot use `this._wrap()`. | ||
const self = this; | ||
const v3SmithyMiddlewareStack = new instrumentation_1.InstrumentationNodeModuleDefinition('@smithy/middleware-stack', ['>=2.0.0'], (moduleExports, moduleVersion) => { | ||
const newExports = (0, propwrap_1.propwrap)(moduleExports, 'constructStack', (orig) => { | ||
self._diag.debug('propwrapping aws-sdk v3 constructStack'); | ||
return self._getV3ConstructStackPatch(moduleVersion, orig); | ||
}); | ||
return newExports; | ||
}); | ||
const v3SmithyClient = new instrumentation_1.InstrumentationNodeModuleDefinition('@aws-sdk/smithy-client', ['^3.1.0'], this.patchV3SmithyClient.bind(this), this.unpatchV3SmithyClient.bind(this)); | ||
@@ -53,0 +62,0 @@ // patch for new @smithy/smithy-client for aws-sdk packages v3.363.0+ |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.38.0"; | ||
export declare const VERSION = "0.38.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.38.0'; | ||
exports.VERSION = '0.38.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-aws-sdk", | ||
"version": "0.38.0", | ||
"version": "0.38.1", | ||
"description": "OpenTelemetry automatic instrumentation for the `aws-sdk` package", | ||
@@ -80,3 +80,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "32204a362d9dffd4cd69a1300e1f7d245df9df52" | ||
"gitHead": "39c34df61f0e60a93fc787dcfceca9782341b837" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228340
54
1619