public final class TracerId extends Object
The HTrace tracer ID.
HTrace tracer IDs are created from format strings. Format strings contain variables which the TracerId class will replace with the correct values at runtime.
For example, the string "%{pname}/%{ip}" will be replaced with something like: DataNode/192.168.0.1, assuming that the process' name is DataNode and its IP address is 192.168.0.1.
ID strings can contain backslashes as escapes. For example, "\a" will map to "a". "\%{ip}" will map to the literal string "%{ip}", not the IP address. A backslash itself can be escaped by a preceding backslash.| Modifier and Type | Field and Description |
|---|---|
static String |
TRACER_ID_KEY
The configuration key to use for process id
|
| Constructor and Description |
|---|
TracerId(HTraceConfiguration conf,
String tracerName) |
public static final String TRACER_ID_KEY
public TracerId(HTraceConfiguration conf, String tracerName)
public String get()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.