@opentelemetry/instrumentation-aws-lambda
Advanced tools
Comparing version 0.40.0 to 0.41.0
@@ -11,3 +11,3 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
setConfig(config?: AwsLambdaInstrumentationConfig): void; | ||
init(): InstrumentationNodeModuleDefinition<unknown>[]; | ||
init(): InstrumentationNodeModuleDefinition[]; | ||
private _getHandler; | ||
@@ -14,0 +14,0 @@ private _getPatchHandler; |
@@ -93,3 +93,2 @@ "use strict"; | ||
new instrumentation_1.InstrumentationNodeModuleFile(module, ['*'], (moduleExports) => { | ||
api_1.diag.debug('Applying patch for lambda handler'); | ||
if ((0, instrumentation_1.isWrapped)(moduleExports[functionName])) { | ||
@@ -103,3 +102,2 @@ this._unwrap(moduleExports, functionName); | ||
return; | ||
api_1.diag.debug('Removing patch for lambda handler'); | ||
this._unwrap(moduleExports, functionName); | ||
@@ -129,5 +127,5 @@ }), | ||
attributes: { | ||
[semantic_conventions_1.SemanticAttributes.FAAS_EXECUTION]: context.awsRequestId, | ||
[semantic_conventions_1.SemanticResourceAttributes.FAAS_ID]: context.invokedFunctionArn, | ||
[semantic_conventions_1.SemanticResourceAttributes.CLOUD_ACCOUNT_ID]: AwsLambdaInstrumentation._extractAccountId(context.invokedFunctionArn), | ||
[semantic_conventions_1.SEMATTRS_FAAS_EXECUTION]: context.awsRequestId, | ||
[semantic_conventions_1.SEMRESATTRS_FAAS_ID]: context.invokedFunctionArn, | ||
[semantic_conventions_1.SEMRESATTRS_CLOUD_ACCOUNT_ID]: AwsLambdaInstrumentation._extractAccountId(context.invokedFunctionArn), | ||
}, | ||
@@ -134,0 +132,0 @@ }, parent); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.40.0"; | ||
export declare const VERSION = "0.41.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.40.0'; | ||
exports.VERSION = '0.41.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-aws-lambda", | ||
"version": "0.40.0", | ||
"version": "0.41.0", | ||
"description": "OpenTelemetry AWS Lambda automatic instrumentation package.", | ||
@@ -59,3 +59,3 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.50.0", | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/propagator-aws-xray": "^1.3.1", | ||
@@ -67,3 +67,3 @@ "@opentelemetry/resources": "^1.8.0", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-aws-lambda#readme", | ||
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb" | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
} |
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
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
65903
407
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)