Methods
addEvent
- addEvent(_name: string, _attributes?: Attributes): this
-
Parameters
Returns this
addLink
- addLink(_spanContext: SpanContext, _attributes?: Attributes): this
-
Parameters
-
_spanContext: SpanContext
-
Optional _attributes: Attributes
Returns this
context
-
Returns SpanContext
end
- end(_endTime?: undefined | number): void
-
Parameters
-
Optional _endTime: undefined | number
Returns void
isRecordingEvents
- isRecordingEvents(): boolean
-
Returns boolean
setAttribute
- setAttribute(_key: string, _value: unknown): this
-
Parameters
-
_key: string
-
_value: unknown
Returns this
setAttributes
- setAttributes(_attributes: Attributes): this
-
Parameters
Returns this
setStatus
- setStatus(_status: Status): this
-
Parameters
Returns this
updateName
- updateName(_name: string): this
-
Parameters
Returns this
A no-op implementation of Span that can safely be used without side-effects.