@opentelemetry/instrumentation-aws-lambda
Advanced tools
Comparing version 0.35.3 to 0.36.0
@@ -17,15 +17,6 @@ "use strict"; | ||
*/ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./instrumentation"), exports); | ||
__exportStar(require("./types"), exports); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./instrumentation"), exports); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -26,2 +26,3 @@ "use strict"; | ||
const version_1 = require("./version"); | ||
const process_1 = require("process"); | ||
const awsPropagator = new propagator_aws_xray_1.AWSXRayPropagator(); | ||
@@ -41,2 +42,9 @@ const headerGetter = { | ||
this._config = _config; | ||
if (this._config.disableAwsContextPropagation == null) { | ||
if (typeof process_1.env['OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION'] === | ||
'string' && | ||
process_1.env['OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION'].toLocaleLowerCase() === 'true') { | ||
this._config.disableAwsContextPropagation = true; | ||
} | ||
} | ||
} | ||
@@ -43,0 +51,0 @@ setConfig(config = {}) { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.3"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.3'; | ||
exports.VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-aws-lambda", | ||
"version": "0.35.3", | ||
"version": "0.36.0", | ||
"description": "OpenTelemetry AWS Lambda automatic instrumentation package.", | ||
@@ -62,10 +62,11 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.40.0", | ||
"@opentelemetry/propagator-aws-xray": "^1.2.1", | ||
"@opentelemetry/instrumentation": "^0.41.0", | ||
"@opentelemetry/propagator-aws-xray": "^1.3.0", | ||
"@opentelemetry/resources": "^1.8.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0", | ||
"@types/aws-lambda": "8.10.81" | ||
"@types/aws-lambda": "8.10.81", | ||
"tslib": "^2.3.1" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-aws-lambda#readme", | ||
"gitHead": "efdfc727a49090accee7fea8ff93011b6b84c1e4" | ||
"gitHead": "f81f8a76a8f0af2101c62dbc73cde442f875d833" | ||
} |
@@ -53,3 +53,3 @@ # OpenTelemetry AWS Lambda Instrumentation for Node.js | ||
| `responseHook` | `ResponseHook` (function) | Hook for adding custom attributes before lambda returns the response. Receives params: `span, { err?, res? }` | | ||
| `disableAwsContextPropagation` | `boolean` | By default, this instrumentation will try to read the context from the `_X_AMZN_TRACE_ID` environment variable set by Lambda, set this to `true` to disable this behavior | | ||
| `disableAwsContextPropagation` | `boolean` | By default, this instrumentation will try to read the context from the `_X_AMZN_TRACE_ID` environment variable set by Lambda, set this to `true` or set the environment variable `OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION=true` to disable this behavior | | ||
| `eventContextExtractor` | `EventContextExtractor` (function) | Function for providing custom context extractor in order to support different event types that are handled by AWS Lambda (e.g., SQS, CloudWatch, Kinesis, API Gateway). Applied only when `disableAwsContextPropagation` is set to `true`. Receives params: `event, context` | | ||
@@ -56,0 +56,0 @@ |
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
62244
7
388
+ Addedtslib@^2.3.1
+ Added@opentelemetry/instrumentation@0.41.2(transitive)
+ Addedacorn@8.12.1(transitive)
+ Addedacorn-import-assertions@1.9.0(transitive)
+ Addedcjs-module-lexer@1.4.1(transitive)
+ Addedimport-in-the-middle@1.4.2(transitive)
+ Addedtslib@2.7.0(transitive)
- Removed@opentelemetry/instrumentation@0.40.0(transitive)
- Removedimport-in-the-middle@1.3.5(transitive)