Package co.elastic.apm.api


package co.elastic.apm.api
Contains the public API of the Elastic APM Java agent.
  • Class
    Description
    Annotating a method with @CaptureSpan creates a Span as the child of the currently active span or transaction (ElasticApm.currentSpan()).
    Annotating a method with @CaptureTransaction creates a Transaction for that method.
    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 Span
    Scopes are designed to be used in combination with try-with-resource statements to remove activated spans from the current thread.
    A span contains information about a specific code path, executed as part of a Transaction.
    Annotating a method with @Traced creates a Span as 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.