Notes
Features
Bug fixes
Security improvements
Documentation
- Fixed images in markdown tutorials (#2153) (ef14948)
- Includes api.js in jsdoc generation (#2139) (3883348)
Miscellaneous chores
- Migrated @newrelic/superagent into agent repo (#2141)
- Migrated @newrelic/aws-sdk into agent repo (#2161) (a9eb593)
- Migrated @newrelic/koa into mainline agent repo (#2148) (33af646)
- Removed repetitive cache busting (#2160) (5ac870e)
- Updated instrumentation to use type constants instead of raw strings (#2165) (c5b42cd)
- Updated versioned tests readme (#2159) (a957304)
- Updated versioned tests to support upcoming tooling (#2147) (38e47d9)
- Updated versioned tests to use quiet output mode (#2145) (63a5ddc)
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
Code refactoring
- mongodb: Removed instrumentation that handles connecting via unix domain socket. (#2129) (808323f)
- Updated shim classes to no longer construct specs. (#2096) (158c295)
Miscellaneous chores
- deps-dev: Bumped express from 4.18.2 to 4.19.2 (#2101) (639cb78)
- deps: Updated @newrelic/security-agent to v1.1.1 (#2092) (3272aa3)
- Fixed incorrect pinning of @elastic/transport (#2120) (7b5bdaa)
- Removed scrollbar styling in generated API docs (#2091) (cb0fa11)
- Removed transaction_id and legacy token count attributes from llm events for openai and langchain (#2093) (df2a0fd)
Tests
- Updated test/integration/core/dns reverse test to remove flakiness (#2121) (c32cb27)
- Updated elastic tests to skip broken version (#2119) (5d0d1bb)
Continuous integration
- Removed usage of
use_new_release
from prepare release workflow (#2124) (007ddb4) - Updated
prepare-release.js
to not require changelog.json (#2106) (328a570) - Updated prepare release to provide a drop down for release type (#2133) (846269b)
- Updated versioned security agent workflow (#2100) (f787b15)
- Fixed typo in constant name for prepare release script (#2094) (3b887d9)
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
guid
attribute toTransactionError
events (#2079) (3468fb1) - Added instrumentation for
initializeUnorderedBulkOp
, andinitializeOrderedBulkOp
in mongodb 4+ (#2086) (666ae6e) - Added support for Mongo v5+ (#2085) (00f6feb)
Security improvements
Documentation
Miscellaneous chores
- Added instrumentation tracking class (#2084) (07d7e7d)
- deps: pin @newrelic/security-agent to 1.0.1 (#2089) (e133c76)
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 AI Monitoring(AIM) for OpenAI, Amazon Bedrock, and Langchain.
- To enable, set
config.ai_monitoring.enabled
orNEW_RELIC_AI_MONITORING_ENABLED
totrue
. - For a full experience, set
config.span_events.max_samples_stored
to10000
,config.custom_insights_events.max_samples_stored
to100000
, andconfig.distributed_tracing.enabled
should not be set to false. - Note: Enabling high-security mode will disable the AIM instrumentation and events.
- To enable, set
- Added instrumentation for
VectorStore.similaritySearch
forlangchain.js
(#2049) (3c50606) - Added
setLlmTokenCountCallback
API endpoint to register a callback for calculating token count when none is provided (#2065) (d2faf1a) - Added
token_count
toLlmEmbedding
andLlmChatCompletionMessage
for openai (#2061) (47a925e) - Added
tool_id
to Langchain error event (#2064) (793abe8)
Miscellaneous chores
- Added flag for verbosity during docs publishing (#2060) (fe0d41a)
- Added some delays to docs publishing (#2062) (a602fd4)
- Changed casing of OpenAI in vendor property (#2068) (64b4ca2)
- Changed
token_count
to only usetokenCountCallback
(#2070) (66f94b0) - Removed langchain_instrumentation feature flag as the instrumentation is feature complete (#2073) (925a463)
- updated @newrelic/aws-sdk and @newrelic/koa to latest (#2074) (0747ca4)
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
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/)