Uses of Interface
co.elastic.apm.api.Transaction
-
Uses of Transaction in co.elastic.apm.api
Methods in co.elastic.apm.api that return TransactionModifier and TypeMethodDescriptionTransaction.addCustomContext(String key, boolean value) Custom context is used to add non-indexed, custom contextual information to transactions.Transaction.addCustomContext(String key, Number value) Custom context is used to add non-indexed, custom contextual information to transactions.Transaction.addCustomContext(String key, String value) Custom context is used to add non-indexed, custom contextual information to transactions.Deprecated.Deprecated.usesetLabel(String, Number)insteadDeprecated.usesetLabel(String, String)insteadDeprecated.useaddLabel(String, String)insteadstatic TransactionElasticApm.currentTransaction()Returns the currently running transaction.Transaction.setFrameworkName(String frameworkName) Provides a way to manually set theservice.framework.namefield.Labels are used to add indexed information to transactions, spans, and errors.Labels are used to add indexed information to transactions, spans, and errors.Labels are used to add indexed information to transactions, spans, and errors.Override the name of the current transaction.Transaction.setOutcome(Outcome outcome) Sets the transaction outcomeA string describing the result of the transaction.Transaction.setServiceInfo(String serviceName, String serviceVersion) Sets the service name and version for this transaction and its child spans.Transaction.setStartTimestamp(long epochMicros) The type of the transaction.Call this to enrich collected performance data and errors with information about the user/client.Call this to enrich collected performance data and errors with information about the user/client.static TransactionElasticApm.startTransaction()Use this method to create a custom transaction.static TransactionElasticApm.startTransactionWithRemoteParent(HeaderExtractor headerExtractor) Similar toElasticApm.startTransaction()but creates this transaction as the child of a remote parent.static TransactionElasticApm.startTransactionWithRemoteParent(HeaderExtractor headerExtractor, HeadersExtractor headersExtractor) Similar toElasticApm.startTransaction()but creates this transaction as the child of a remote parent.Transaction.useServiceInfoForClassLoader(ClassLoader classLoader) Sets the service name and version, that are associated with the given class loader (see:ElasticApm.setServiceInfoForClassLoader(ClassLoader, String, String)), for this transaction and its child spans.
setLabel(String, boolean)instead