| Modifier and Type | Method and Description |
|---|---|
| public default void | close()
Implements java.
|
| public default void | |
| public TelemetryScope | Returns: anAutoCloseable telemetry scope that represents the current telemetry context.Takes this telemetry span and makes it current in the global telemetry context. |
| public default void | setAttribute(TelemetryAttribute
the key for this attribute key, String the value for this attribute value)Adds the specified String attribute to this telemetry span. |
| public default void | setAttribute(TelemetryAttribute
the key for this attribute key, long the value for this attribute value)Adds the specified long attribute to this telemetry span. |
| public default < the type of the attribute value T> void | setAttribute(TelemetryAttribute
the key for this attribute key, Supplier<T> the supplier for the value for this attribute valueSupplier)Adds the attribute given by the specified supplier to this telemetry span. |
| public default void |
| close | back to summary |
|---|---|
| public default void close() Implements java.
| |
| end | back to summary |
|---|---|
| public default void end() Marks the end of the execution of this span. | |
| makeCurrent | back to summary |
|---|---|
| public TelemetryScope makeCurrent() Takes this telemetry span and makes it current in the global telemetry context.
| |
| setAttribute | back to summary |
|---|---|
| public default void setAttribute(TelemetryAttribute key, String value) Adds the specified String attribute to this telemetry span.
| |
| setAttribute | back to summary |
|---|---|
| public default void setAttribute(TelemetryAttribute key, long value) Adds the specified long attribute to this telemetry span.
| |
| setAttribute | back to summary |
|---|---|
| public default <T> void setAttribute(TelemetryAttribute key, Supplier<T> valueSupplier) Adds the attribute given by the specified supplier to this telemetry span.
| |
| setError | back to summary |
|---|---|
| public default void setError(Throwable cause) Sets the status code of this telemetry span as ERROR and records the stack trace of the specified exception.
| |