Notes
Features
- Added ability to store a list of OpenTelemetry Gen AI attributes from being truncated (#4505) (0e7d01d)
- Added support for some OpenTelemetry configuration options when
opentelemetry.enabledis true (#4501) (a0874ab)- If
config.opentelemetry.enabledistrue, the following OpenTelemetry environment variables will be applied to config:OTEL_SERVICE_NAME->config.app_nameOTEL_LOG_LEVEL->config.logging.levelOTEL_SDK_DISABLED->config.agent_enabled
- The OpenTelemetry environment variables have the same precedence level as New Relic environment variables. If the same value is set by both a New Relic environment variable (ex. NEW_RELIC_APP_NAME), the New Relic variable will take precedence.
- If
Bug fixes
- Added support for header tuples in
outgoingResponse.writeHead(#4504) (ed90b3d) - Handled an
apollo-serverrequest where a fragment does not return an operation (#4525) (bd866aa) - Reported unhandled outbound
httprequest errors once on the external span (#4484) (e76cacc) - Restored Redis MULTI/pipeline datastore instrumentation for @redis/client 6.4.0 (#4510) (2446f75)
- Used the bundled undici version for
SubscriberUsedmetrics instead of the Node.js major (#4512) (6561d6b) - Used the correct AWS partition when building ARNs for DynamoDB and Lambda (#4491) (f644a09)
Performance improvements
- Reduced per-request CPU in middleware done handler wrapping billouboq (#4516) (1b4f6c0)
- Skipped
Buffer.byteLengthinisValidLengthwhen the string length decides billouboq (#4523) (d819521) - Stopped
mongodbrecorders from retaining cursors until the transaction ends billouboq (#4517) (77d8d23)
Documentation
- Removed 'External Modules' section in README (#4522) (57b855c)
- Updated
virtual-machineandworker-threadsconfig schema descriptions (#4521) (6e8272e) - Updated
agent_controlandapiconfig schema descriptions (#4513) (460e87f) - Updated compatibility report (#4493) (0a663b8)
Miscellaneous chores
- Aligned
ai_monitoring.enableddeprecation notice withplugins.native_metrics.enabled(#4495) (f083b00) - Cleanup
qandelasticsearchsubscriber configs to accurately reflect instrumented range (#4514) (b8d0bd9)- Also fixed lint issues.
- Deprecated
NEW_RELIC_NATIVE_METRICS_ENABLEDfor new setting (#4490) (210118f)
Tests
- Added a script that checks for circular deps. It will run weekly as a Github action (#4515) (7272bd8)
- Changed configuration to disable virtual machine metrics for 2 suites (#4498) (2504cae)
- Fixed test reporter totals to use the run-wide summary (#4506) (5288d35)
- Moved
lib/configunit tests totest/unit/lib/config(#4500) (823fa59) - Reduced benchmark suite wall time (#4494) (2352751)
- Reduced response handling integration test time by sharing a certificate (#4497) (d9f925b)
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
Bug fixes
- Corrected protocol and port of outbound
http/httpsrequests (#4473) (ab1b4b8) - Fixed capturing of response headers for writeHead (#4477) (fab8012)
- Returned the application handler promise from the kafkajs eachMessage wrapper (#4488) (3263f9a)
Code refactoring
- Migrated
httpclient (includinghttp-outbound) instrumentation to subscriber-based (#4472) (191a052) - Migrated http server instrumentation to subscriber-based (#4472) (04a3101)
Documentation
Miscellaneous chores
- Removed nock in lieu of local http mock server calls (#4478) (4e0b963)
- Removed unused core instrumentation code (#4472) (b371b0c)
- Updated
@newrelic/security-agentto v4 (#4471) (4234f4f)
Tests
- Consolidated local http mock servers (#4479) (ede2b19)
- Updated client-s3 smoke test to expect an https url (#4482) (e8d039d)
- Updated the Bedrock mock server fail fast on an unmatched converse prompt (#4485) (5a69ac7)
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.basic_telemetry.enabledand enabled basic AI Monitoring by default (#4330) (c126335)- LLM instrumentation is now enabled by default and sends
Llm*custom events, spans, and metrics (without message content) unless configured otherwise. To opt out, setai_monitoring.basic_telemetry.enabledtofalseinnewrelic.js, or set theNEW_RELIC_AI_MONITORING_BASIC_TELEMETRY_ENABLEDenvironment variable tofalse. ai_monitoring.enabledand theNEW_RELIC_AI_MONITORING_ENABLEDenvironment variable are deprecated and will be removed in a future major version, but setting either one to false also opts out.
- LLM instrumentation is now enabled by default and sends
- Disabled core tracing (#4394) (2d0ee8e)
Bug fixes
Performance improvements
Documentation
Miscellaneous chores
- deps-dev: bump @opentelemetry/exporter-metrics-otlp-proto from 0.300.0 to 0.301.0 (#4464) (498dc4c)
- deps: bump @apm-js-collab/tracing-hooks from 0.13.3 to 0.14.0 (#4455) (7fa16f2)
- deps: bump @opentelemetry/exporter-metrics-otlp-http from 0.300.0 to 0.301.0 (#4462) (6f7bc29)
- deps: bump @opentelemetry/otlp-exporter-base from 0.300.0 to 0.301.0 (#4463) (bd28555)
- deps: bump @opentelemetry/otlp-transformer from 0.300.0 to 0.301.0 (#4461) (0518ca1)
Tests
- Derived google-genai API version in external segment assertions (#4445) (7234378)
- Fixed leaked agent in bluebird shape test security-agent skip paths (#4456) (4ea68a6)
- Made VM metrics sampler tests deterministic under CPU contention (#4446) (649d1bc)
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
Bug fixes
- Stopped span event aggregator from stripping span links and timed events from queued spans (#4426) (24f9a15)
Code refactoring
Documentation
- Clarified datastore reporting configuration (#4434) (ec469e2)
- Updated compatibility report (#4415) (07a4437)
Tests
- Moved http tests to
test/integration/core/http. Also split out unit and integration tests accordingly (#4418) (3127658)
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 support for
@opentelemetry/api@1.10.0(#4392) (504490d)- For customers directly using
@opentelemetry/api-logs, they must remove and update to use@opentelemetry/api1.10.0+. See the OpenTelemetry API changelog for more information. - For customers registering 3rd party instrumentation for logging libraries they must update to the following:
@opentelemetry/instrumentation-pinoto 0.70.0+,@opentelemetry/instrumentation-bunyanto 0.69.0+,@opentelemetry/instrumentation-consoleto 0.6.0+, or@opentelemetry/instrumentation-winstonto 0.69.0+
- For customers directly using
Bug fixes
- Collapsed Apollo Server argument array metrics (#4350) (baf35fd)
- To take advantage of this feature you must set both
config.apollo_server.field_metricsandconfig.apollo_server.collapse_field_metricstotrue. Thanks to @cpruijsen for your contribution!
- To take advantage of this feature you must set both
- Stopped net.js from pinning ended transactions to long-lived sockets (#4411) (471e7df)
Performance improvements
- Simplified mongodb bulk instrumentation to match execute directly (#4406) (af4efdb)
- Wrapped mongodb driver methods at the prototype level (#4399) (9074abc)
Documentation
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.
See the New Relic Node.js agent EOL policy for information about agent releases and support dates.
Features
- Added
--dumpto validate-config to emit the effective configuration (#4390) (fe3e684) - Added a validate-config CLI command (#4341) (821848d)
- Flagged a missing OpenTelemetry bridge as a validate-config startup blocker (#4396) (75397be)
- Reduced instances of the schema file to be just one instance in
schema.json(#4379) (a870c3b) - Shared startup-blocker checks between the agent and validate-config CLI (#4378) (06e6596)
Bug fixes
- Bounded module version resolution at filesystem root (#4393) (71c90b6)
- Fixed
http2client handling of missing headers, default ports, IPv6 hosts, and unparseable URLs (#4362) (0eef6a6) - Loaded the code-level metrics function inspector once instead of on every call (#4391) (01d2797)
Performance improvements
- Reduced CPU per SQL query by skipping slow query processing below
explain_threshold(#4376) (047e2cd)
Code refactoring
Documentation
Miscellaneous chores
- Fixed
MAXIMUM_TIMEOUT_TIMEinlib/otel/metrics/index.jsto be the correct expected value (#4365) (39b037c) - Updated linter to latest version (#4351) (a1a30f5)
- Added CLI tool help note about derived settings (#4398) (7c8b36d)
Tests
- Attempted to fix flaky tests (#4383) (01ddfd8)
- Pinned version of
@opentelemetry/apito 1.9.0 (#4387) (525b81c) - Updated
gotto latest to ensure it is up to date (#4364) (b586275)
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
Bug fixes
- Prevented nested server/consumer spans from ending the outer transactions early (#4355) (1a41313)
- Truncated every string within an array based span attribute (#4358) (9276106)
Code refactoring
- Handled updating segment name on internal spans when
span.updateNameis used after span is created (#4356) (320b7e6) - Updated span process
onEndlogic to skip attaching stacktrace to error when span lacks stack trace (#4357) (d318777) - Added instrumentation for
dns.promises,dns.Resolver,dns.promises.Resolver, and additionalresolve*methods (#4321) (e1e7784) - Refactored
netinstrumentation to subscriber-based (#4322) (0123e56)
Documentation
Miscellaneous chores
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 a new api
setApolloResolverFilterCallbackto allow customers to filter out resolver segments before they are created (#4312) (0d89bde)
Bug fixes
- Updated the channel name for resolver fields in ESM to
nr_resolve(#4346) (e8b294c) - Wrapped openai stream
[Symbol.asyncIterator]so synthesized message survives v7 chunk normalization (#4342) (aa8ed4b)
Code refactoring
- Removed reliance on
@opentelemetry/sdk-logsfor hybrid agent (#4318) (1d05075) - Removed reliance on
@opentelemetry/sdk-trace-basefor hybrid agent (#4297) (00c363b)
Documentation
- Added an empty
enhancementsarray to docs PR (#4344) (b505eda) - Updated compatibility report (#4339) (6204ebb)
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
Bug fixes
- Ended the transaction and recorded the error when an Azure Functions handler throws (#4310) (918ef55)
Code refactoring
- Migrated
fsinstrumentation over to subscriber-based (#4317) (4711f4c) - Migrated core
globalsinstrumentation to subscriber-based (#4300) (7827797) - Refactored the Transaction class and affected other entities (#4246) (b965d8e)
Documentation
Miscellaneous chores
- Added
excludedPkgslist toinstrumentationand addedglobalsto it (#4334) (4f356f5) - Migrated configuration to JSON Schema (#4284) (39cdebc)
- Regenerated agent config json schema (#4335) (4c199a5)
- Removed
domainandinspectorinstrumentation and oldzlibfile (#4331) (f887492) - Updated agent-types 1.0.0 (#4307) (175a4ba)
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
Bug fixes
- Updated
segment.getExclusiveDurationto only attempt to calculate and cache the durations of all segments in a trace once (#4303) (563f743)
Performance improvements
Code refactoring
- Consolidated core subscriber configs into a single file (#4294) (a6adc6d)
- Migrated core
cryptoinstrumentation to subscriber-based (#4293) (8848d84) - Refactored
zlibinstrumentation to be subscriber based (#4299) (e4ede21) - Removed reliance on
@opentelemetry/corefor hybrid agent (#4295) (8a83507)
Documentation
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/)