newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
202 stars 143 forks source link

[Spike] Investigate making reservoir sizes for major services changable at runtime #1944

Closed jtduffy closed 3 months ago

jtduffy commented 4 months ago

Description

Currently, none of the agent's services reservoir size can be dynamically changed (no app restart). We need to investigate the feasibility of adding this behavior to the insight, logging, transaction and span events service.

workato-integration[bot] commented 4 months ago

https://new-relic.atlassian.net/browse/NR-280261

jtduffy commented 4 months ago

tl;dr

The TransactionEventService, LogSenderService, SpanEventsService and InsightsService can have their reservoir sizes updated by forcing a disconnect/reconnect action.

TransactionEventService

Initial Config
Updating the Setting During Runtime

LogSenderService

Initial Config
Updating the Setting During Runtime

SpanEventsServiceImpl

Initial Config
Updating the Setting During Runtime

InsightsServiceImpl

Initial Config
Updating the Setting During Runtime