Package co.elastic.apm.api
package co.elastic.apm.api
Contains the public API of the Elastic APM Java agent.
-
ClassDescriptionAnnotating a method with
@CaptureSpancreates aSpanas the child of the currently active span or transaction (ElasticApm.currentSpan()).This class is the main entry point of the public API for the Elastic APM agent.Used to extract the first header with a specific header name.Used to inject a header into a networking library's underlying outgoing request object.Used to extract all header values with a specific header name.Outcome of Transaction or SpanScopes are designed to be used in combination with try-with-resource statements to removeactivatedspans from the current thread.A span contains information about a specific code path, executed as part of aTransaction.Annotating a method with@Tracedcreates aSpanas the child of the currently active span or transaction (ElasticApm.currentSpan()).A transaction is the data captured by an agent representing an event occurring in a monitored service and groups multiple spans in a logical group.