Skip to content

AxSpan

Interface: AxSpan

Methods

addEvent()

addEvent(name, attributesOrStartTime?, startTime?): AxSpan

Parameters

name: string

attributesOrStartTime?: Readonly<AxSpanAttributes | AxSpanTimeInput>

startTime?: Readonly<AxSpanTimeInput>

Returns

AxSpan

Defined in

src/ax/trace/index.ts:99


end()

end(endTime)

end(endTime?): void

Parameters

endTime?: Readonly<AxSpanTimeInput>

Returns

void

Defined in

src/ax/trace/index.ts:104

end()

end(): void

Returns

void

Defined in

src/ax/trace/index.ts:192


isRecording()

isRecording(): boolean

Returns

boolean

Defined in

src/ax/trace/index.ts:105


recordAxSpanException()

recordAxSpanException(exception, time?): void

Parameters

exception: Readonly<AxSpanException>

time?: Readonly<AxSpanTimeInput>

Returns

void

Defined in

src/ax/trace/index.ts:106


setAttribute()

setAttribute(key, value): AxSpan

Parameters

key: string

value: AxSpanAttributeValue

Returns

AxSpan

Defined in

src/ax/trace/index.ts:110


setAttributes()

setAttributes(attributes): AxSpan

Parameters

attributes: AxSpanAttributes

Returns

AxSpan

Defined in

src/ax/trace/index.ts:111


setStatus()

setStatus(status)

setStatus(status): AxSpan

Parameters

status: Readonly<AxSpanStatus>

Returns

AxSpan

Defined in

src/ax/trace/index.ts:112

setStatus(status)

setStatus(status): void

Parameters

status: Readonly<AxSpanStatus>

Returns

void

Defined in

src/ax/trace/index.ts:191


spanContext()

spanContext(): AxSpanContext

Returns

AxSpanContext

Defined in

src/ax/trace/index.ts:113


updateName()

updateName(name): AxSpan

Parameters

name: string

Returns

AxSpan

Defined in

src/ax/trace/index.ts:114