datadog-lambda-js
Advanced tools
Comparing version 9.113.0 to 9.114.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.STREAM_RESPONSE = exports.HANDLER_STREAMING = exports.datadogLambdaVersion = void 0; | ||
exports.datadogLambdaVersion = "9.113.0"; | ||
exports.datadogLambdaVersion = "9.114.0"; | ||
// Response streaming functions | ||
@@ -6,0 +6,0 @@ exports.HANDLER_STREAMING = Symbol.for("aws.lambda.runtime.handler.streaming"); |
const { logDebug } = require("../utils"); | ||
const { logDebug, updateDDTags } = require("../utils"); | ||
@@ -15,7 +15,5 @@ // Currently no way to prevent typescript from auto-transpiling import into require, | ||
// tslint:disable-next-line:no-var-requires | ||
const tracer = require(path).init({ | ||
tags: { | ||
"_dd.origin": "lambda", | ||
}, | ||
}); | ||
// add lambda tags to DD_TAGS environment variable | ||
const ddtags = updateDDTags({"_dd.origin": "lambda"}) | ||
const tracer = require(path).init({tags: ddtags}); | ||
logDebug("automatically initialized dd-trace"); | ||
@@ -22,0 +20,0 @@ |
@@ -6,3 +6,4 @@ export { didFunctionColdStart, getSandboxInitTags, setSandboxInit, isProactiveInitialization } from "./cold-start"; | ||
export { tagObject } from "./tag-object"; | ||
export { updateDDTags } from "./dd_tags"; | ||
export { batchItemFailureCount, isBatchItemFailure } from "./batch-item-failures"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isBatchItemFailure = exports.batchItemFailureCount = exports.tagObject = exports.LogLevel = exports.setLogger = exports.setLogLevel = exports.logDebug = exports.logError = exports.logWarning = exports.Timer = exports.promisifiedHandler = exports.wrap = exports.isProactiveInitialization = exports.setSandboxInit = exports.getSandboxInitTags = exports.didFunctionColdStart = void 0; | ||
exports.isBatchItemFailure = exports.batchItemFailureCount = exports.updateDDTags = exports.tagObject = exports.LogLevel = exports.setLogger = exports.setLogLevel = exports.logDebug = exports.logError = exports.logWarning = exports.Timer = exports.promisifiedHandler = exports.wrap = exports.isProactiveInitialization = exports.setSandboxInit = exports.getSandboxInitTags = exports.didFunctionColdStart = void 0; | ||
var cold_start_1 = require("./cold-start"); | ||
@@ -23,2 +23,4 @@ Object.defineProperty(exports, "didFunctionColdStart", { enumerable: true, get: function () { return cold_start_1.didFunctionColdStart; } }); | ||
Object.defineProperty(exports, "tagObject", { enumerable: true, get: function () { return tag_object_1.tagObject; } }); | ||
var dd_tags_1 = require("./dd_tags"); | ||
Object.defineProperty(exports, "updateDDTags", { enumerable: true, get: function () { return dd_tags_1.updateDDTags; } }); | ||
var batch_item_failures_1 = require("./batch-item-failures"); | ||
@@ -25,0 +27,0 @@ Object.defineProperty(exports, "batchItemFailureCount", { enumerable: true, get: function () { return batch_item_failures_1.batchItemFailureCount; } }); |
{ | ||
"name": "datadog-lambda-js", | ||
"version": "9.113.0", | ||
"version": "9.114.0", | ||
"description": "Lambda client library that supports hybrid tracing in node js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
533764
238
7296