Closed jtduffy closed 3 months ago
The TransactionEventService, LogSenderService, SpanEventsService and InsightsService can have their reservoir sizes updated by forcing a disconnect/reconnect action.
transaction_events.max_samples_stored
settingconnect
messageharvest_limits
object which will specify the maximum number of events stored per harvest cycle in the harvest_limits.analytic_event_data
property. This will be the max_samples_stored
value devided by 12.
"harvest_limits":{"error_event_data":8,"log_event_data":500,"analytic_event_data":833,"custom_event_data":833}
max_samples_stored
value in the yml does update the value in the AgentConfig object, however the max_samples_stored
value is not updated in the service itself so the harvest cycle reservoir size is not changedmax_samples_stored
in the service correctly.application_logging.forwarding.max_samples_stored
settingconnect
messageharvest_limits
object which will specify the maximum number of events stored per harvest cycle in the harvest_limits.log_event_data
property. This will be the max_samples_stored
value devided by 12.
"harvest_limits":{"error_event_data":8,"log_event_data":8333,"analytic_event_data":833,"custom_event_data":833}
application_logging.forwarding.max_samples_stored
setting does adjust the reservoir size per harvest without needed to do a reconnectconfigChanged
method; it assigns the service's max_samples_stored value by taking the value from the config and doing this calculation: maxSamplesStored = (int) (appLoggingConfig.getMaxSamplesStored()*(reportPeriodInMillis / 60000.0));
span_events.max_samples_stored
setting
connect
messagespan_event_data
object which will specify the maximum number of events stored per harvest cycle in the span_event_data.max_samples_stored
property.
"span_event_data":{"report_period_in_seconds":60,"max_samples_stored":100}
max_samples_stored
value in the yml does update the value in the AgentConfig object, however the max_samples_stored
value is not updated in the service itself so the harvest cycle reservoir size is not changedmax_samples_stored
in the service correctly.custom_insights_events.max_samples_stored
setting
connect
messageharvest_limits
object which will specify the maximum number of events stored per harvest cycle in the harvest_limits.custom_event_data
property. This will be the max_samples_stored
value devided by 12.
"harvest_limits":{"error_event_data":8,"log_event_data":500,"analytic_event_data":833,"custom_event_data":833}
max_samples_stored
value in the yml does update the value in the AgentConfig object, however the max_samples_stored
value is not updated in the service itself so the harvest cycle reservoir size is not changedmax_samples_stored
in the service correctly.
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.
AgentConfigListener
interface?