Nuevas características y mejoras:
- El perfilado en tiempo real para Java mediante métricas JFR ahora está completamente integrado en el agente de Java. Consulte el README de JFR core para obtener detalles adicionales.
Esta característica requiere una versión compatible de Java 8 (específicamente la versión 8u262 o superior) o Java 11 o superior y actualmente está deshabilitada por defecto. Para habilitarla, establezca lo siguiente en el yaml (con una sangría de 2 espacios en la sección common).
jfr: enabled: trueAviso: Si utilizaba anteriormente el jar jfr-daemon como extensión del agente o proceso independiente, debe eliminar esa opción para evitar posibles conflictos con el servicio JFR que ahora está integrado en el agente.
- No es compatible con Java 7. Para continuar innovando y proporcionar de manera eficiente nuevas capacidades a los clientes que ejecutan en la JVM, esta y las futuras versiones del agente no son compatibles con Java 7. Si ejecuta Java 7, puede continuar usando el agente de Java 6.5.0 o inferior. Para obtener más detalles, consulte este tema en el Explorers Hub.
- Agrega soporte para akka http con Scala 2.13. #271
- Anotación de clase para trazar métodos lambda. #274
- Anotación de clase para trazar métodos por tipo de retorno. #275
Corrige:
- Soluciona un problema que podía causar que se aplicaran múltiples versiones de la instrumentación de
akka-http-coreal mismo tiempo. #208 - Ahora el agente registrará los eventos descartados en
FINEen lugar deWARNpara disminuir la verbosidad. #296 - Soluciona los comentarios de Javadoc que indicaban incorrectamente que, al llamar a la API de
noticeErrorvarias veces, se informaría el primer error cuando, de hecho, se informa el último error. #313
Declaración de apoyo:
- New Relic recomienda actualizar el agente regularmente para asegurarse de obtener las últimas funciones y beneficios de rendimiento. Además, las versiones anteriores dejarán de tener soporte cuando lleguen al fin de su vida útil.
Problemas conocidos
- OkHttp
Esta versión contiene un error que hace fallar las versiones 3.X y anteriores de OkHttp. Todos los usuarios afectados deben actualizar a la versión 7.0.1.
Nuevas características y mejoras:
- El agente ya no incluye certificados SSL y se ha eliminado la opción
use_private_sslque configuraba el agente para usar los certificados incluidos anteriormente. De forma predeterminada, el agente usará el almacén de confianza SSL proporcionado por la JVM a menos que se configure explícitamente para usar un almacén de confianza diferente con la opción ca_bundle_path. Consulte Configuración de certificados SSL para obtener más detalles.
Corrige:
- Soluciona un problema que podía causar nombres de transacción incorrectos al usar subrecursos de JAX-RS.
- Mejoras y correcciones de la instrumentación de Reactor Netty.
Aviso de desuso
- Obsolescencia de la compatibilidad con Java 7
Para continuar innovando y proporcionar de manera eficiente nuevas capacidades a nuestros clientes que operan en la JVM, el soporte de Java 7 ha quedado obsoleto y esta será la última versión del agente compatible con este.
Si ejecuta Java 7, puede continuar usando el agente de Java 6.5.0 o inferior.
Para obtener más información, consulte la publicación en el Explorers Hub.
Declaración de apoyo:
- New Relic recomienda que actualices el agente periódicamente para garantizar que obtengas las últimas características y beneficios de rendimiento. Además, las versiones anteriores ya no recibirán soporte cuando lleguen al final de su vida útil.
Fixes
Fixes an issue that could cause some instrumentation modules (e.g. jax-rs-1.0) to have a WeaveViolation and not apply properly.
Fixes
Fixes an issue in 6.4.0 where spans would not get sent to Infinite Tracing.
Note:
- There is an issue with this agent release that could lead to spans not being sent to Infinite Tracing. Please use 6.4.1 instead.
New Features and Improvements:
- Spring Webflux/Netty Reactor instrumentation improvements for enhanced tracing across asynchronous thread hops.
- The agent will now utilize a backoff sequence on connection retries to Infinite Tracing.
- New distributed tracing APIs have been added to better support general use cases for propagating distributed tracing headers. In particular the new APIs provide enhanced support for W3C Trace Context but are flexible enough to support other header protocols that may be supported by the agent in the future. Previous distributed tracing APIs have been deprecated and are subject to removal in a future agent release. See documentation here.
Transaction.insertDistributedTraceHeaders(Headers)is used to create and insert distributed tracing headers (both newrelic and W3C Trace Context) into aHeadersdata structure.Transaction.acceptDistributedTraceHeaders(TransportType, Headers)is used to accept the distributed tracing headers sent from the calling service and link these services together in a distributed trace.
Fixes:
- Updated the Java agent’s snakeyaml dependency to 1.27.
- In some environments the jar collector service could lead to high CPU utilization at application startup. The agent now provides a configurable rate limiter, with a reasonable default, for processing jars detected in the application’s environment. See documentation here.
Support statement:
- New Relic recommends that you upgrade the agent regularly to ensure that you're getting the latest features and performance benefits. Additionally, older releases will no longer be supported when they reach end-of-life.
Improvements
- Spring Webflux
- The Java agent now supports Spring Webflux versions 5.3+
- Added reactor-netty.errors.enabled configuration to allow disabling error reporting in Subscriber::onError.
- Scala 2.13
- The Java agent now provides support for Scala 2.13 and frameworks compiled with 2.13 Akka-http, Play
Fixes
- The netty-4.0.8 instrumentation would sometimes not start a Transaction on channelRead, potentially affecting instrumentation dependent on it including: Spring, Akka and Play
- Updated the Java agent’s Apache HttpClient dependency to 5.13
- Spring Webclient could report the wrong URL when multiple HTTP calls to several URLs occurred in parallel
Fixes
- Fixes an issue where Spring-Webflux applications with endpoints returning Flux or empty content could become unresponsive
New features
- Adds support for Akka Http Core 10.2.0. Thank you jobicarter for reporting this issue.
- Adds support for gRPC 1.30.0. Thank you jef for submitting this request and trying it out.
- Adds support for
mapandflatmapasync external calls in spring webflux framework. Previously the agent didn’t support client calls that occurred within themaporflatmapmethods within the spring webflux framework. External calls such asserviceBandserviceCin the example below would not get reported to New Relic:
return serviceA.getData() .map(service -> Response.builder().service(service).build()) .flatMap(serviceB::getData) .flatMap(serviceC::getData) .doOnNext(this::saveResponse);- Adds support for Play 2.16.3. Many thanks to junder31 for this contribution.
Improvements
- The agent now supports parsing cgroup ids that do not contain
docker-. Previously, the agent only supported docker cgroup ids that containeddocker-in them, such as1:cpu:/system.slice/docker-12345abcde.scope. The agent now supports parsing cgroup ids such as1:cpu:/system.slice/crio-12345abcde.scope.
Fixes
- Prevents the agent from logging a timeout exception when using New Relic Edge with Infinite Tracing but the agent hasn’t sent spans in a while.
- Prevents the agent from logging a socket exception when trying to retrieve cloud provider information in a non-cloud environment.
- Adds New Relic EU certifications if
ca_bundle_pathis specified. This fix also came with the reintroduction of theuse_private_sslconfig, which can be set to add our agent certs to the truststore.
Support statement:
- New Relic recommends that you upgrade the agent regularly to ensure that you're getting the latest features and performance benefits. Additionally, older releases will no longer be supported when they reach end-of-life.