Improvements
MongoDB
This release adds instrumentation for mongo-java-driver clients created using the MongoClients class Previous versions of the agent only supported the MongoClient() constructor Note: The MongoDB Asynchronous Java Drivers are not yet supported.
Custom request header attributes
The Java agent now provides a new configuration option to report HTTP request header(s) as transaction attributes. See the documentation for more details.
Distributed tracing
Datastore span events now include a db.collection attribute. This field represents the collection or primary table name for the associated query. It is accessible in Insights, Distributed Tracing, and anywhere you get your favorite spans.
GC Time
The Java agent now records time spent waiting for garbage collection during the duration of a transaction and includes the GC time on the corresponding transaction trace as well as the transactions time chart.
This setting is configurable as follows in the newrelic.yml:
transaction_tracer: gc_time_enabled: true
Fixes
- Fixes an issue where very long-running transactions with a large number of segments would cause an excessive amount of memory usage. The agent will no longer trace segments once the segment_limit has been reached.
Notes
- The Java agent now enforces a maximum of 10,000 transaction events per minute.