Search in sources :

Example 1 with CollectorSpanEventReservoirManager

use of com.newrelic.agent.service.analytics.CollectorSpanEventReservoirManager in project newrelic-java-agent by newrelic.

the class DataCollectionConfigCrossAgentTest method setUpSpanEventsService.

private SpanEventsService setUpSpanEventsService() {
    SpanEventsService spanEventsService = SpanEventsServiceFactory.builder().configService(configService).reservoirManager(new CollectorSpanEventReservoirManager(configService)).transactionService(serviceManager.getTransactionService()).rpmServiceManager(serviceManager.getRPMServiceManager()).build();
    serviceManager.setSpansEventService(spanEventsService);
    return spanEventsService;
}
Also used : CollectorSpanEventReservoirManager(com.newrelic.agent.service.analytics.CollectorSpanEventReservoirManager) SpanEventsService(com.newrelic.agent.service.analytics.SpanEventsService)

Aggregations

CollectorSpanEventReservoirManager (com.newrelic.agent.service.analytics.CollectorSpanEventReservoirManager)1 SpanEventsService (com.newrelic.agent.service.analytics.SpanEventsService)1