Package co.elastic.apm.api
Contains the public API of the Elastic APM Java agent.
-
Interface Summary Interface Description HeaderExtractor Used to extract the first header with a specific header name.HeaderInjector Used to inject a header into a networking library's underlying outgoing request object.HeadersExtractor Used to extract all header values with a specific header name.Scope Scopes are designed to be used in combination with try-with-resource statements to removeactivated
spans from the current thread.Span A span contains information about a specific code path, executed as part of aTransaction
.Transaction 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. -
Class Summary Class Description ElasticApm This class is the main entry point of the public API for the Elastic APM agent. -
Enum Summary Enum Description Outcome Outcome of Transaction or Span -
Annotation Types Summary Annotation Type Description CaptureSpan Annotating a method with@
CaptureSpan
creates aSpan
as the child of the currently active span or transaction (ElasticApm.currentSpan()
).CaptureTransaction Traced Annotating a method with@
Traced
creates aSpan
as the child of the currently active span or transaction (ElasticApm.currentSpan()
).