Notes
Features
Miscellaneous chores
- Added @azure/openai and @langchain/community/llms/bedrock as tracking packages so we can measure usage with angler (#2053) (4830ea3)
Tests
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Features
Added instrumentation for RunnableSequence (#1996) (71ffa37)
Added
ai_monitoring.streaming.enabled
. When set tofalse
this will not instrument chat completion streams, thus it will not create relevant Llm events. (#2021) (ff78b51)Added ability to recordLlmFeedbackEvent by traceId (#2043) (b0a4ed1)
Added instrumentation for langchain tools. (#2009) (695d10e)
Code refactoring
Updated AIM instrumentation (#2015) (d37d2a8)
- removed capturing last 4 of api key
- included all custom attributes prefixed with
llm.
as attributes on all Llm events - changed tracking metric to start with Supportability
Updated capturing conversation_id on Llm Events as
llm.conversation_id
(#2020) (5f93f65)Updated instrumentation to construct specs at source instead of within the shim methods (#2035) (ead8c25)
- Simplified the logic in
shim.recordQuery
andshim.recordOperation
to reduce merging of spec properties and rely on the constructed spec
- Simplified the logic in
Documentation
Miscellaneous chores
Added missing is_response to LangChain completion messages (#2044) (20c7d47)
Attached specs to the
Shim.prototype
for use in custom instrumentation and instrumentation outside of the agent (#2038) (2c97488)deps: Updated to use @newrelic/ritm from require-in-the-middle (#2034) (ffb729f)
Updated DatastoreParameters to include collection (#2039) (b9c73ca)
Tests
- Cleaned up pending mocks in the log dropping test to avoid a console warning around pending mocks in after each (#2017) (d2f40c2)
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Bug fixes
- Resolved application logs getting blocked when encountering an excessive payload (#2013) (365ded4)
- Updated Shim to properly calculate the
_moduleRoot
on Windows environments (#2014) (ab0bd7f)
Code refactoring
- Abstracted registering of new aggregators into a Harvester class that's responsible for starting, stopping, and updating all registered aggregators. (#1994) (1fb85a6)
- Refactored specs into classes for easier code navigation (#2004) (4daedc0)
Miscellaneous chores
Tests
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Features
- Added feature flag for LangChain instrumentation (#1990) (ab04e7a)
- Added message entities for LangChain (#1983) (6b44a3a)
- Added vectorsearch entities (#1992) (ef74b2e)
Bug fixes
Documentation
- Removed documentation around aws_bedrock_instrumentation as feature flag has been removed (#1991) (f414564)
Miscellaneous chores
Tests
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. You can read more about keeping agents up to date in our documentation.
For information about agent releases and support dates, please see our New Relic Node.js agent EOL policy documentation.
Notes
Bug fixes
- Updated winston instrumentation to wrap configure to properly retain our transporter to do log forwarding (#1987) (b54a97f)
Documentation
Miscellaneous chores
Tests
- Pinned prisma instrumentation testing to <5.9.0 until we can fix issues with instrumentation (#1985) (5eae6ee)
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Bug fixes
- Updated instrumentation registration to allow for instrumenting of a local file that does not exist within node_modules.
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Features
- Added llm attribute to all transactions that contain llm spans for openai (#1946) (6312629)
- Added transaction ID to ErrorTrace event (#1954) (5d0ebcd)
Security improvements
Code refactoring
- Updated
lib/shim/shim.js
to remove cognitive complexity violations (#1950) (60e57a1) - Updated message-shim to remove cognitive complexity violations. (#1958) (3d1caaf)
Miscellaneous chores
- deps: Updated @newrelic/aws-sdk to latest and removed aws_bedrock_instrumentation feature flag (#1956) (9eae28c)
- deps: Updated @newrelic/security-agent to v0.7.0 (#1955) (e156539)
- Migrated non-sensitive CI values to vars (#1957) (1739378)
- updated contributors list to include james and svetlana 🎉 (#1947) (33a59fd)
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Features
- Assign
pkgVersion
andid
of all childshim
instances when usingshim.makeSpecializedShim
with aConglomerateShim
instance (#1941) (d3e393d)
Bug fixes
Dropped support for ElasticSearch < 7.16.0 (#1940) (e017768)
- Previously, New Relic's Node.js agent instrumented ElasticSearch as early as v7.13.0, which was susceptible to crashing when using ElasticSearch's
.helper
API. ElasticSearch fixed this bug in v7.16.0, so we now support instrumentation from that version onward, and previous versions are noops.
- Previously, New Relic's Node.js agent instrumented ElasticSearch as early as v7.13.0, which was susceptible to crashing when using ElasticSearch's
Removed extra
/
in openai framework metric name (#1938) (7f586c3)
Security improvements
Miscellaneous chores
Tests
- Fixed DNS lookup in remote-method test (#1937) (4da2149)
- Removed console log (#1939) (7d378aa)
- Updated abort controller test expected error message based on undici version (#1935) (3e79cc7)
- Updated chat-completions tests to properly assert segments (#1931) (10762a7)
Support statement
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
Features
- Removed
api.setLlmMetadata
(#1918) (cc4a975)- Instead, the
api.addCustomAttribute
will have thellm
prefix. - The
conversation_id
will be assigned fromllm.conversation_id
custom attribute
- Instead, the
- Updated SQL obfuscation tokenizer to better handle negative numbers and boolean values.
Bug fixes
Code refactoring
- Updated
lib/instrumentation/core/http.js
to reduce the cognitive complexity to an allowable value (#1922) (4c30d97) - Updated
lib/shim/promise-shim.js
to reduce the cognitive complexity (#1924) (bd0a5dc) - Updated
lib/shim/webframework-shim.js
to reduce the cognitive complexity (#1927) (1ce371e)
Miscellaneous chores
Tests
- Refactored tests now use tap if they still use the tap mocha shim + chai. (#1919) (957529e)
- Removed access to deprecated
req._headers
and instead usereq.headers
(#1923) (0ec2f66) - Updated the cross agent tests, made updates to tests based on fixture changes (#1917) (2d666b6)
- Updated
helper.randomPort
to usecrypto.randomInt
instead ofMath.random
by using crypto lib (#1921) (9003791)
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.
See the New Relic Node.js agent EOL policy for information about agent releases and support dates.
Notes
Features
- Added deserialized X-NewRelic-Synthetics-Info header to transaction and transaction trace intrinsic attributes (#1912) (7ed64bd).
- The attributes in transactions are:
nr.syntheticsType
,nr.syntheticsInitiator
, andnr.synthetics<attributeKey(s)>
. - The attributes in transaction traces are:
synthetics_type
,synthetics_initiator
, andsynthetics_<attribute_key(s)>
. - It will also include the
X-NewRelic-Synthetics-Info
header in outgoing http requests.
- The attributes in transactions are:
- Added instrumentation for Restify async handlers (#1910) (1a3f87f).
Bug fixes
Code refactoring
Miscellaneous chores
Continuous integration
- Removed step in post release process to update an internal system with the latest agent version (#1909) (2080b1f).
Support statement:
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date here.
See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)