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

NameSignatureSynopsis
Operations
``end``this.``end``Ends the span.
setAttributethis.setAttribute (key, value)Sets one string attribute on the span.
setStatusthis.setStatus statusSets the span status; the object is `{ code: SpanStatusCode; message: string }`.
spanContextthis.spanContext ()Returns the span's `SpanContext`, used for links.

Operations

kind:member

``end``

this.``end``
Member
Ends the span.

Returns

unit
kind:member

setAttribute

this.setAttribute (key, value)
Member
Sets one string attribute on the span.

Parameters

NameTypeDescription
keystring
valueobj

Returns

unit
kind:member

setStatus

this.setStatus status
Member
Sets the span status; the object is `{ code: SpanStatusCode; message: string }`.

Parameters

NameTypeDescription
statusobj

Returns

unit
kind:member

spanContext

this.spanContext ()
Member
Returns the span's `SpanContext`, used for links.

Returns

obj