Comparing version 11.9.0 to 11.10.0
@@ -262,11 +262,15 @@ /* | ||
const logBody = Buffer.isBuffer(options.body) ? 'Buffer ' + options.body.length : options.body | ||
logger[level]( | ||
{ body: logBody }, | ||
'Posting to %s://%s:%s%s', | ||
protocol, | ||
options.host, | ||
options.port, | ||
options.path | ||
) | ||
// check if trace is enabled or audit log(aka info in this case) before attemping | ||
// to get the body length or parse the path with redacted key | ||
if (logger.traceEnabled() || level === 'info') { | ||
const logBody = Buffer.isBuffer(options.body) ? 'Buffer ' + options.body.length : options.body | ||
logger[level]( | ||
{ body: logBody }, | ||
'Posting to %s://%s:%s%s', | ||
protocol, | ||
options.host, | ||
options.port, | ||
this._path({ redactLicenseKey: true }) | ||
) | ||
} | ||
@@ -340,9 +344,10 @@ this._request(options) | ||
* | ||
* @param {boolean} redactLicenseKey flag to redact license key in path | ||
* @returns {string} The URL path to be POSTed to. | ||
*/ | ||
RemoteMethod.prototype._path = function _path() { | ||
RemoteMethod.prototype._path = function _path({ redactLicenseKey } = {}) { | ||
const query = { | ||
marshal_format: 'json', | ||
protocol_version: this._protocolVersion, | ||
license_key: this._config.license_key, | ||
license_key: redactLicenseKey ? 'REDACTED' : this._config.license_key, | ||
method: this.name | ||
@@ -349,0 +354,0 @@ } |
@@ -70,3 +70,4 @@ /* | ||
* [3] -> extracted error type, | ||
* [4] -> attributes | ||
* [4] -> attributes, | ||
* [5] -> transaction id | ||
*/ | ||
@@ -115,3 +116,3 @@ function createError(transaction, exception, config) { | ||
return [0, name, message, type, params] | ||
return [0, name, message, type, params, transaction?.id] | ||
} | ||
@@ -118,0 +119,0 @@ |
@@ -15,4 +15,3 @@ /* | ||
unresolved_promise_cleanup: true, | ||
legacy_context_manager: false, | ||
aws_bedrock_instrumentation: false | ||
legacy_context_manager: false | ||
} | ||
@@ -38,3 +37,4 @@ | ||
'async_local_context', | ||
'undici_instrumentation' | ||
'undici_instrumentation', | ||
'aws_bedrock_instrumentation' | ||
] | ||
@@ -41,0 +41,0 @@ |
@@ -22,2 +22,3 @@ /* | ||
const semver = require('semver') | ||
const { DESTINATIONS } = require('../config/attribute-filter') | ||
@@ -286,2 +287,4 @@ let TRACKING_METRIC = OPENAI.TRACKING_PREFIX | ||
} | ||
segment.transaction.trace.attributes.addAttribute(DESTINATIONS.TRANS_EVENT, 'llm', true) | ||
} | ||
@@ -306,2 +309,4 @@ } | ||
after(_shim, _fn, _name, err, response, segment) { | ||
segment.transaction.trace.attributes.addAttribute(DESTINATIONS.TRANS_EVENT, 'llm', true) | ||
if (!response) { | ||
@@ -308,0 +313,0 @@ // If we get an error, it is possible that `response = null`. |
@@ -40,2 +40,4 @@ /* | ||
exports.WrapSpec = WrapSpec | ||
exports.MessageSpec = MessageSpec | ||
exports.MessageSubscribeSpec = MessageSubscribeSpec | ||
@@ -84,4 +86,22 @@ function cast(Class, spec) { | ||
function MessageSpec(spec) { | ||
RecorderSpec.call(this, spec) | ||
this.destinationName = hasOwnProperty(spec, 'destinationName') ? spec.destinationName : null | ||
this.destinationType = hasOwnProperty(spec, 'destinationType') ? spec.destinationType : null | ||
this.headers = hasOwnProperty(spec, 'headers') ? spec.headers : null | ||
this.routingKey = hasOwnProperty(spec, 'routingKey') ? spec.routingKey : null | ||
this.queue = hasOwnProperty(spec, 'queue') ? spec.queue : null | ||
this.messageHandler = hasOwnProperty(spec, 'messageHandler') ? spec.messageHandler : null | ||
} | ||
util.inherits(MessageSpec, RecorderSpec) | ||
function MessageSubscribeSpec(spec) { | ||
MessageSpec.call(this, spec) | ||
this.consumer = hasOwnProperty(spec, 'consumer') ? spec.consumer : null | ||
} | ||
util.inherits(MessageSubscribeSpec, MessageSpec) | ||
function _defaultGetParams(shim, fn, name, args, req) { | ||
return req && req.params | ||
} |
{ | ||
"name": "newrelic", | ||
"version": "11.9.0", | ||
"version": "11.10.0", | ||
"author": "New Relic Node.js agent team <nodejs@newrelic.com>", | ||
@@ -126,2 +126,12 @@ "license": "Apache-2.0", | ||
"web": "https://newrelic.com" | ||
}, | ||
{ | ||
"name": "James Sumners", | ||
"email": "jsumners@newrelic.com", | ||
"web": "https://newrelic.com" | ||
}, | ||
{ | ||
"name": "Svetlana Brennan", | ||
"email": "sbrennan@newrelic.com", | ||
"web": "https://newrelic.com" | ||
} | ||
@@ -187,5 +197,5 @@ ], | ||
"@grpc/proto-loader": "^0.7.5", | ||
"@newrelic/aws-sdk": "^7.0.3", | ||
"@newrelic/aws-sdk": "^7.1.0", | ||
"@newrelic/koa": "^8.0.1", | ||
"@newrelic/security-agent": "^0.6.0", | ||
"@newrelic/security-agent": "0.7.0", | ||
"@newrelic/superagent": "^7.0.1", | ||
@@ -192,0 +202,0 @@ "@tyriar/fibonacci-heap": "^2.0.7", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2111302
229
35822
+ Added@newrelic/security-agent@0.7.0(transitive)
- Removed@aws-crypto/crc32@5.2.0(transitive)
- Removed@aws-crypto/sha256-browser@5.2.0(transitive)
- Removed@aws-crypto/sha256-js@5.2.0(transitive)
- Removed@aws-crypto/supports-web-crypto@5.2.0(transitive)
- Removed@aws-crypto/util@5.2.0(transitive)
- Removed@aws-sdk/client-lambda@3.696.0(transitive)
- Removed@aws-sdk/client-sso@3.696.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.696.0(transitive)
- Removed@aws-sdk/client-sts@3.696.0(transitive)
- Removed@aws-sdk/core@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-http@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.696.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.696.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.696.0(transitive)
- Removed@aws-sdk/middleware-logger@3.696.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.696.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.696.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.696.0(transitive)
- Removed@aws-sdk/token-providers@3.696.0(transitive)
- Removed@aws-sdk/types@3.696.0(transitive)
- Removed@aws-sdk/util-endpoints@3.696.0(transitive)
- Removed@aws-sdk/util-locate-window@3.693.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.696.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.696.0(transitive)
- Removed@newrelic/security-agent@0.6.0(transitive)
- Removed@smithy/abort-controller@3.1.8(transitive)
- Removed@smithy/config-resolver@3.0.12(transitive)
- Removed@smithy/core@2.5.3(transitive)
- Removed@smithy/credential-provider-imds@3.2.7(transitive)
- Removed@smithy/eventstream-codec@3.1.9(transitive)
- Removed@smithy/eventstream-serde-browser@3.0.13(transitive)
- Removed@smithy/eventstream-serde-config-resolver@3.0.10(transitive)
- Removed@smithy/eventstream-serde-node@3.0.12(transitive)
- Removed@smithy/eventstream-serde-universal@3.0.12(transitive)
- Removed@smithy/fetch-http-handler@4.1.1(transitive)
- Removed@smithy/hash-node@3.0.10(transitive)
- Removed@smithy/invalid-dependency@3.0.10(transitive)
- Removed@smithy/is-array-buffer@2.2.03.0.0(transitive)
- Removed@smithy/middleware-content-length@3.0.12(transitive)
- Removed@smithy/middleware-endpoint@3.2.3(transitive)
- Removed@smithy/middleware-retry@3.0.27(transitive)
- Removed@smithy/middleware-serde@3.0.10(transitive)
- Removed@smithy/middleware-stack@3.0.10(transitive)
- Removed@smithy/node-config-provider@3.1.11(transitive)
- Removed@smithy/node-http-handler@3.3.1(transitive)
- Removed@smithy/property-provider@3.1.10(transitive)
- Removed@smithy/protocol-http@4.1.7(transitive)
- Removed@smithy/querystring-builder@3.0.10(transitive)
- Removed@smithy/querystring-parser@3.0.10(transitive)
- Removed@smithy/service-error-classification@3.0.10(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.11(transitive)
- Removed@smithy/signature-v4@4.2.3(transitive)
- Removed@smithy/smithy-client@3.4.4(transitive)
- Removed@smithy/types@3.7.1(transitive)
- Removed@smithy/url-parser@3.0.10(transitive)
- Removed@smithy/util-base64@3.0.0(transitive)
- Removed@smithy/util-body-length-browser@3.0.0(transitive)
- Removed@smithy/util-body-length-node@3.0.0(transitive)
- Removed@smithy/util-buffer-from@2.2.03.0.0(transitive)
- Removed@smithy/util-config-provider@3.0.0(transitive)
- Removed@smithy/util-defaults-mode-browser@3.0.27(transitive)
- Removed@smithy/util-defaults-mode-node@3.0.27(transitive)
- Removed@smithy/util-endpoints@2.1.6(transitive)
- Removed@smithy/util-hex-encoding@3.0.0(transitive)
- Removed@smithy/util-middleware@3.0.10(transitive)
- Removed@smithy/util-retry@3.0.10(transitive)
- Removed@smithy/util-stream@3.3.1(transitive)
- Removed@smithy/util-uri-escape@3.0.0(transitive)
- Removed@smithy/util-utf8@2.3.03.0.0(transitive)
- Removed@smithy/util-waiter@3.1.9(transitive)
- Removedbowser@2.11.0(transitive)
- Removedfast-xml-parser@4.4.1(transitive)
- Removedstrnum@1.0.5(transitive)
- Removedtslib@2.8.1(transitive)
Updated@newrelic/aws-sdk@^7.1.0