SpanType
PackageAxial.Telemetry.JavaScript
The subset of the OpenTelemetry JS `Span` interface this package writes to.
Specification
Kind
Type
Members
4
Examples
0
``end``Signature
this.``end``
setAttributeSignature
this.setAttribute (key, value)
setStatusSignature
this.setStatus status
spanContextSignature
this.spanContext ()
Summary
| Name | Signature | Synopsis |
|---|---|---|
| ``end`` | this.``end`` | Ends the span. |
| setAttribute | this.setAttribute (key, value) | Sets one string attribute on the span. |
| setStatus | this.setStatus status | Sets the span status; the object is `{ code: SpanStatusCode; message: string }`. |
| spanContext | this.spanContext () | Returns the span's `SpanContext`, used for links. |
Sets one string attribute on the span.
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | |
| value | obj |
Returns
unit
Sets the span status; the object is `{ code: SpanStatusCode; message: string }`.
Parameters
| Name | Type | Description |
|---|---|---|
| status | obj |
Returns
unit

