A C E F G H I O S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- action() - Method in annotation type co.elastic.apm.api.CaptureSpan
-
Sets the action of the captured span, used to group similar spans together, for example: `query`.
- action() - Method in annotation type co.elastic.apm.api.Traced
-
Sets the action of the captured span, used to group similar spans together, for example: `query`.
- activate() - Method in interface co.elastic.apm.api.Span
-
Makes this span the active span on the current thread until
Scope.close()
has been called. - activate() - Method in interface co.elastic.apm.api.Transaction
-
Makes this transaction the active transaction on the current thread until
Scope.close()
has been called. - addCustomContext(String, boolean) - Method in interface co.elastic.apm.api.Transaction
-
Custom context is used to add non-indexed, custom contextual information to transactions.
- addCustomContext(String, Number) - Method in interface co.elastic.apm.api.Transaction
-
Custom context is used to add non-indexed, custom contextual information to transactions.
- addCustomContext(String, String) - Method in interface co.elastic.apm.api.Transaction
-
Custom context is used to add non-indexed, custom contextual information to transactions.
- addHeader(String, String) - Method in interface co.elastic.apm.api.HeaderInjector
-
Injects a header key and value into the underlying request object of an networking library
- addLabel(String, boolean) - Method in interface co.elastic.apm.api.Span
-
Deprecated.
- addLabel(String, boolean) - Method in interface co.elastic.apm.api.Transaction
-
Deprecated.use
Transaction.setLabel(String, boolean)
instead - addLabel(String, Number) - Method in interface co.elastic.apm.api.Span
-
Deprecated.
- addLabel(String, Number) - Method in interface co.elastic.apm.api.Transaction
-
Deprecated.use
Transaction.setLabel(String, Number)
instead - addLabel(String, String) - Method in interface co.elastic.apm.api.Span
-
Deprecated.
- addLabel(String, String) - Method in interface co.elastic.apm.api.Transaction
-
Deprecated.use
Transaction.setLabel(String, String)
instead - addTag(String, String) - Method in interface co.elastic.apm.api.Span
-
Deprecated.use
Span.addLabel(String, String)
instead - addTag(String, String) - Method in interface co.elastic.apm.api.Transaction
-
Deprecated.use
Transaction.addLabel(String, String)
instead
C
- captureException(Throwable) - Static method in class co.elastic.apm.api.ElasticApm
-
Deprecated.use
ElasticApm.currentSpan()
.captureException(Throwable)
instead - captureException(Throwable) - Method in interface co.elastic.apm.api.Span
-
Captures an exception and reports it to the APM server.
- CaptureSpan - Annotation Type in co.elastic.apm.api
-
Annotating a method with
@
CaptureSpan
creates aSpan
as the child of the currently active span or transaction (ElasticApm.currentSpan()
). - CaptureTransaction - Annotation Type in co.elastic.apm.api
- close() - Method in interface co.elastic.apm.api.Scope
-
Closing a scope removes the corresponding
Span
from the current thread. - co.elastic.apm.api - package co.elastic.apm.api
-
Contains the public API of the Elastic APM Java agent.
- createSpan() - Method in interface co.elastic.apm.api.Span
-
Deprecated.
- createSpan() - Method in interface co.elastic.apm.api.Transaction
-
Deprecated.
- currentSpan() - Static method in class co.elastic.apm.api.ElasticApm
-
Returns the currently active span or transaction.
- currentTransaction() - Static method in class co.elastic.apm.api.ElasticApm
-
Returns the currently running transaction.
E
- ElasticApm - Class in co.elastic.apm.api
-
This class is the main entry point of the public API for the Elastic APM agent.
- end() - Method in interface co.elastic.apm.api.Span
-
Ends the span and schedules it to be reported to the APM Server.
- end() - Method in interface co.elastic.apm.api.Transaction
-
End tracking the transaction.
- end(long) - Method in interface co.elastic.apm.api.Span
-
Ends the span and schedules it to be reported to the APM Server.
- ensureParentId() - Method in interface co.elastic.apm.api.Transaction
-
If the transaction does not have a parent-ID yet, calling this method generates a new ID, sets it as the parent-ID of this transaction, and returns it as a `String`.
F
G
- getAllHeaders(String) - Method in interface co.elastic.apm.api.HeadersExtractor
-
Returns all values of the provided header name
- getFirstHeader(String) - Method in interface co.elastic.apm.api.HeaderExtractor
-
Returns the value of the provided header name
- getId() - Method in interface co.elastic.apm.api.Span
-
Returns the id of this span (never
null
) - getId() - Method in interface co.elastic.apm.api.Transaction
-
Returns the id of this transaction (never
null
) - getTraceId() - Method in interface co.elastic.apm.api.Span
-
Returns the id of this trace (never
null
)
H
- HeaderExtractor - Interface in co.elastic.apm.api
-
Used to extract the first header with a specific header name.
- HeaderInjector - Interface in co.elastic.apm.api
-
Used to inject a header into a networking library's underlying outgoing request object.
- HeadersExtractor - Interface in co.elastic.apm.api
-
Used to extract all header values with a specific header name.
I
- injectTraceHeaders(HeaderInjector) - Method in interface co.elastic.apm.api.Span
-
Allows for manual propagation of the tracing headers.
- isSampled() - Method in interface co.elastic.apm.api.Span
-
Returns true if this span is recorded and sent to the APM Server
O
- Outcome - Enum in co.elastic.apm.api
-
Outcome of Transaction or Span
S
- Scope - Interface in co.elastic.apm.api
-
Scopes are designed to be used in combination with try-with-resource statements to remove
activated
spans from the current thread. - setDestinationAddress(String, int) - Method in interface co.elastic.apm.api.Span
-
Provides a way to manually set the destination address and port for this span.
- setDestinationService(String) - Method in interface co.elastic.apm.api.Span
-
Provides a way to manually set the
destination.service.resource
field, which is used for the construction of service maps and the identification of downstream services. - setFrameworkName(String) - Method in interface co.elastic.apm.api.Transaction
-
Provides a way to manually set the
service.framework.name
field. - setLabel(String, boolean) - Method in interface co.elastic.apm.api.Span
-
Labels are used to add indexed information to transactions, spans, and errors.
- setLabel(String, boolean) - Method in interface co.elastic.apm.api.Transaction
-
Labels are used to add indexed information to transactions, spans, and errors.
- setLabel(String, Number) - Method in interface co.elastic.apm.api.Span
-
Labels are used to add indexed information to transactions, spans, and errors.
- setLabel(String, Number) - Method in interface co.elastic.apm.api.Transaction
-
Labels are used to add indexed information to transactions, spans, and errors.
- setLabel(String, String) - Method in interface co.elastic.apm.api.Span
-
Labels are used to add indexed information to transactions, spans, and errors.
- setLabel(String, String) - Method in interface co.elastic.apm.api.Transaction
-
Labels are used to add indexed information to transactions, spans, and errors.
- setName(String) - Method in interface co.elastic.apm.api.Span
-
The name of the span.
- setName(String) - Method in interface co.elastic.apm.api.Transaction
-
Override the name of the current transaction.
- setOutcome(Outcome) - Method in interface co.elastic.apm.api.Span
-
Sets the outcome of this event
- setOutcome(Outcome) - Method in interface co.elastic.apm.api.Transaction
-
Sets the transaction outcome
- setResult(String) - Method in interface co.elastic.apm.api.Transaction
-
A string describing the result of the transaction.
- setStartTimestamp(long) - Method in interface co.elastic.apm.api.Span
-
Sets the start timestamp of this event.
- setStartTimestamp(long) - Method in interface co.elastic.apm.api.Transaction
- setType(String) - Method in interface co.elastic.apm.api.Span
-
Deprecated.
- setType(String) - Method in interface co.elastic.apm.api.Transaction
-
The type of the transaction.
- setUser(String, String, String) - Method in interface co.elastic.apm.api.Transaction
-
Call this to enrich collected performance data and errors with information about the user/client.
- setUser(String, String, String, String) - Method in interface co.elastic.apm.api.Transaction
-
Call this to enrich collected performance data and errors with information about the user/client.
- Span - Interface in co.elastic.apm.api
-
A span contains information about a specific code path, executed as part of a
Transaction
. - startExitSpan(String, String, String) - Method in interface co.elastic.apm.api.Span
-
Start and return a new typed custom exit span as a child of this span.
- startSpan() - Method in interface co.elastic.apm.api.Span
-
Start and return a new custom span with no type, as a child of this span.
- startSpan(String, String, String) - Method in interface co.elastic.apm.api.Span
-
Start and return a new typed custom span as a child of this span.
- startTransaction() - Static method in class co.elastic.apm.api.ElasticApm
-
Use this method to create a custom transaction.
- startTransactionWithRemoteParent(HeaderExtractor) - Static method in class co.elastic.apm.api.ElasticApm
-
Similar to
ElasticApm.startTransaction()
but creates this transaction as the child of a remote parent. - startTransactionWithRemoteParent(HeaderExtractor, HeadersExtractor) - Static method in class co.elastic.apm.api.ElasticApm
-
Similar to
ElasticApm.startTransaction()
but creates this transaction as the child of a remote parent. - subtype() - Method in annotation type co.elastic.apm.api.CaptureSpan
-
Sets the subtype of the captured span, used to group similar spans together, for example: `mysql`.
- subtype() - Method in annotation type co.elastic.apm.api.Traced
-
Sets the subtype of the captured span, used to group similar spans together, for example: `mysql`.
- SUCCESS - co.elastic.apm.api.Outcome
T
- Traced - Annotation Type in co.elastic.apm.api
-
Annotating a method with
@
Traced
creates aSpan
as the child of the currently active span or transaction (ElasticApm.currentSpan()
). - Transaction - Interface in co.elastic.apm.api
-
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.
- type() - Method in annotation type co.elastic.apm.api.CaptureSpan
-
Sets the general type of the captured span, used to group similar spans together, for example: `db`.
- type() - Method in annotation type co.elastic.apm.api.CaptureTransaction
-
The type of the transaction.
- type() - Method in annotation type co.elastic.apm.api.Traced
-
Sets the general type of the captured span or transaction, used to group similar spans together, for example: `db`.
- TYPE_REQUEST - Static variable in interface co.elastic.apm.api.Transaction
U
V
- value() - Method in annotation type co.elastic.apm.api.CaptureSpan
-
The name of the
Span
. - value() - Method in annotation type co.elastic.apm.api.CaptureTransaction
-
The name of the
Transaction
. - value() - Method in annotation type co.elastic.apm.api.Traced
-
The name of the
Span
orTransaction
. - valueOf(String) - Static method in enum co.elastic.apm.api.Outcome
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum co.elastic.apm.api.Outcome
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages