public class Glowroot extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addTransactionAttribute(String name,
String value)
Adds an attribute on the current transaction with the specified
name and
value . |
static void |
setTransactionName(String transactionName)
Set the transaction name that is used for aggregation.
|
static void |
setTransactionOuter()
FOR ADVANCED USE CASE ONLY.
|
static void |
setTransactionSlowThreshold(long threshold,
TimeUnit unit)
Overrides the default slow trace threshold (Configuration > General > Slow trace
threshold) for the current transaction.
|
static void |
setTransactionType(String transactionType)
Set the transaction type that is used for aggregation.
|
static void |
setTransactionUser(String user)
Sets the user attribute on the transaction.
|
public static void addTransactionAttribute(String name, String value)
name
and
value
. A transaction's attributes are displayed when viewing a trace on the trace
explorer page.
Subsequent calls to this method with the same name
on the same transaction will add
an additional attribute if there is not already an attribute with the same name
and
value
.
If there is no current transaction then this method does nothing.
null
values are normalized to the empty string.public static void setTransactionName(String transactionName)
public static void setTransactionOuter()
public static void setTransactionSlowThreshold(long threshold, TimeUnit unit)
threshold
will
be used.
If there is no current transaction then this method does nothing.public static void setTransactionType(String transactionType)
public static void setTransactionUser(String user)
Copyright © 2011–2020 Glowroot contributors. All rights reserved.