| Modifier and Type | Field and Description |
|---|---|
| private OpenTelemetryScope | |
| private Span |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides default com.
|
| public void | end()
Overrides default com. Marks the end of the execution of this span. |
| public TelemetryScope | makeCurrent()
Implements com. Takes this telemetry span and makes it current in the global telemetry context. |
| public void | setAttribute(TelemetryAttribute
the key for this attribute key, String the value for this attribute value)Overrides default com. Adds the specified String attribute to this telemetry span. |
| public void | setAttribute(TelemetryAttribute
the key for this attribute key, long the value for this attribute value)Overrides default com. Adds the specified long attribute to this telemetry span. |
| public <T> void | setAttribute(TelemetryAttribute
the key for this attribute key, Supplier<T> the supplier for the value for this attribute valueSupplier)Overrides default com. Adds the attribute given by the specified supplier to this telemetry span. |
| public void | setError(Throwable
the cause for setting this span status code to ERROR cause)Overrides default com. Sets the status code of this telemetry span as ERROR and records the stack trace of the specified exception. |
| scope | back to summary |
|---|---|
| private OpenTelemetryScope scope | |
| span | back to summary |
|---|---|
| private Span span | |
| OpenTelemetrySpan | back to summary |
|---|---|
| public OpenTelemetrySpan(Span span) | |
| close | back to summary |
|---|---|
| public void close() Overrides default com. Doc from com.
| |
| end | back to summary |
|---|---|
| public void end() Overrides default com. Doc from com. Marks the end of the execution of this span.
| |
| makeCurrent | back to summary |
|---|---|
| public TelemetryScope makeCurrent() Implements com. Doc from com. Takes this telemetry span and makes it current in the global telemetry context.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(TelemetryAttribute key, String value) Overrides default com. Doc from com. Adds the specified String attribute to this telemetry span.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(TelemetryAttribute key, long value) Overrides default com. Doc from com. Adds the specified long attribute to this telemetry span.
| |
| setAttribute | back to summary |
|---|---|
| public <T> void setAttribute(TelemetryAttribute key, Supplier<T> valueSupplier) Overrides default com. Doc from com. Adds the attribute given by the specified supplier to this telemetry span.
| |
| setError | back to summary |
|---|---|
| public void setError(Throwable cause) Overrides default com. Doc from com. Sets the status code of this telemetry span as ERROR and records the stack trace of the specified exception. | |