Tracer.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Tracer | |
| public SpanBuilder | spanBuilder(String
The name of the returned Span. spanName)Implements io. Returns a |
| INSTANCE | back to summary |
|---|---|
| private static final Tracer INSTANCE | |
| DefaultTracer | back to summary |
|---|---|
| private DefaultTracer() | |
| getInstance | back to summary |
|---|---|
| pack-priv static Tracer getInstance() | |
| spanBuilder | back to summary |
|---|---|
| public SpanBuilder spanBuilder(String spanName) Implements io. Doc from io. Returns a See
| |
| Modifier and Type | Field and Description |
|---|---|
| private SpanContext |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultTracer. | addLink(SpanContext
the context of the linked spanContext)Span.Implements io. Adds a link to the newly created |
| public DefaultTracer. | addLink(SpanContext
the context of the linked spanContext, Attributes Span.the attributes of the attributes)Link.Implements io. Adds a link to the newly created |
| pack-priv static DefaultTracer. | |
| public DefaultTracer. | setAllAttributes(Attributes
the attributes attributes)Overrides default io. Sets attributes to the |
| public DefaultTracer. | setAttribute(String
the key for this attribute. key, String the value for this attribute. value)Implements io. Sets an attribute to the newly created |
| public DefaultTracer. | setAttribute(String
the key for this attribute. key, long the value for this attribute. value)Implements io. Sets an attribute to the newly created |
| public DefaultTracer. | setAttribute(String
the key for this attribute. key, double the value for this attribute. value)Implements io. Sets an attribute to the newly created |
| public DefaultTracer. | setAttribute(String
the key for this attribute. key, boolean the value for this attribute. value)Implements io. Sets an attribute to the newly created |
| public <T> DefaultTracer. | setAttribute(AttributeKey<T>
the key for this attribute. key, T the value for this attribute. value)Implements io. Sets an attribute to the newly created |
| public DefaultTracer. | setNoParent()
Implements io. Sets the option to become a root |
| public DefaultTracer. | setParent(Context
the context)Context.Implements io. Sets the parent to use from the specified |
| public DefaultTracer. | setSpanKind(SpanKind
the kind of the newly created spanKind)Span.Implements io. Sets the |
| public DefaultTracer. | setStartTimestamp(long
the explicit start timestamp from the epoch of the newly created startTimestamp, TimeUnit Span.the unit of the timestamp. unit)Implements io. Sets an explicit start timestamp for the newly created |
| public Span |
| spanContext | back to summary |
|---|---|
| private SpanContext spanContext
| |
| NoopSpanBuilder | back to summary |
|---|---|
| private NoopSpanBuilder() | |
| addLink | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Adds a link to the newly created Links are used to link Implementations may ignore calls with an invalid span context.
| |
| addLink | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Adds a link to the newly created Links are used to link Implementations may ignore calls with an invalid span context.
| |
| create | back to summary |
|---|---|
| pack-priv static DefaultTracer. | |
| setAllAttributes | back to summary |
|---|---|
| public DefaultTracer. Overrides default io. Doc from io. Sets attributes to the
| |
| setAttribute | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets an attribute to the newly created If a null or empty String Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets an attribute to the newly created Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets an attribute to the newly created Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets an attribute to the newly created Note It is strongly recommended to use
| |
| setAttribute | back to summary |
|---|---|
| public <T> DefaultTracer. Implements io. Doc from io. Sets an attribute to the newly created Note the behavior of null values is undefined, and hence strongly discouraged.
| |
| setNoParent | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets the option to become a root Observe that any previously set parent will be discarded.
| |
| setParent | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets the parent to use from the specified If no If called multiple times, only the last specified value will be used. Observe that the state
defined by a previous call to
| |
| setSpanKind | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets the
| |
| setStartTimestamp | back to summary |
|---|---|
| public DefaultTracer. Implements io. Doc from io. Sets an explicit start timestamp for the newly created LIRInstruction.Use this method to specify an explicit start timestamp. If not called, the
implementation will use the timestamp value at Important this is NOT equivalent with System.nanoTime().
| |
| startSpan | back to summary |
|---|---|
| public Span startSpan() Implements io. Doc from io. Starts a new Users must manually call Does not install the newly created Important Note This method can be called only once per Example of usage:
| |