Class OpenCensusSpanWrapper
Constructors
constructor
-
Parameters
-
Parameters
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
getWrappedSpan
- getWrappedSpan(): OpenCensusSpan
-
Returns OpenCensusSpan
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
An implementation of OpenTelemetry Span that wraps an OpenCensus Span.