SpanLike
A span, with the OpenTelemetry method names.
A span, with the OpenTelemetry method names.
Import#
ts
import type { SpanLike } from "@shadow-js/dusk/server";
Signature#
ts
interface SpanLike {
setAttribute(key: string, value: string | number | boolean): unknown;
recordException(error: unknown): unknown;
setStatus(status: { readonly code: 0 | 1 | 2; readonly message?: string }): unknown;
end(): unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
setAttribute |
setAttribute(key: string, value: string | number | boolean): unknown |
|
recordException |
recordException(error: unknown): unknown |
|
setStatus |
setStatus(status: { readonly code: 0 | 1 | 2; readonly message?: string }): unknown |
|
end |
end(): unknown |