Package co.elastic.apm.agent.report
Class IntakeV2ReportingEventHandler
- java.lang.Object
-
- co.elastic.apm.agent.report.AbstractIntakeApiHandler
-
- co.elastic.apm.agent.report.IntakeV2ReportingEventHandler
-
- All Implemented Interfaces:
ReportingEventHandler,com.lmax.disruptor.EventHandler<ReportingEvent>
public class IntakeV2ReportingEventHandler extends AbstractIntakeApiHandler implements ReportingEventHandler
This reporter supports the nd-json HTTP streaming based intake v2 protocol
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINTAKE_V2_URL-
Fields inherited from class co.elastic.apm.agent.report.AbstractIntakeApiHandler
apmServerClient, connection, currentlyTransmitting, deflater, dropped, errorCount, GZIP_COMPRESSION_LEVEL, logger, os, payloadSerializer, reported, reporterConfiguration, shutDown
-
-
Constructor Summary
Constructors Constructor Description IntakeV2ReportingEventHandler(ReporterConfiguration reporterConfiguration, ProcessorEventHandler processorEventHandler, PayloadSerializer payloadSerializer, ApmServerClient apmServerClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendRequest()voidinit(ApmServerReporter reporter)voidonEvent(ReportingEvent event, long sequence, boolean endOfBatch)protected java.net.HttpURLConnectionstartRequest(java.lang.String endpoint)-
Methods inherited from class co.elastic.apm.agent.report.AbstractIntakeApiHandler
getDropped, getErrorCount, getReported, onConnectionError, onRequestError, onRequestSuccess, shouldEndRequest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface co.elastic.apm.agent.report.ReportingEventHandler
getDropped, getReported
-
-
-
-
Field Detail
-
INTAKE_V2_URL
public static final java.lang.String INTAKE_V2_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IntakeV2ReportingEventHandler
public IntakeV2ReportingEventHandler(ReporterConfiguration reporterConfiguration, ProcessorEventHandler processorEventHandler, PayloadSerializer payloadSerializer, ApmServerClient apmServerClient)
-
-
Method Detail
-
init
public void init(ApmServerReporter reporter)
- Specified by:
initin interfaceReportingEventHandler
-
onEvent
public void onEvent(ReportingEvent event, long sequence, boolean endOfBatch)
- Specified by:
onEventin interfacecom.lmax.disruptor.EventHandler<ReportingEvent>
-
startRequest
@Nullable protected java.net.HttpURLConnection startRequest(java.lang.String endpoint) throws java.lang.Exception- Overrides:
startRequestin classAbstractIntakeApiHandler- Throws:
java.lang.Exception
-
endRequest
public void endRequest()
- Overrides:
endRequestin classAbstractIntakeApiHandler
-
close
public void close()
- Specified by:
closein interfaceReportingEventHandler- Overrides:
closein classAbstractIntakeApiHandler
-
-