AxSpan
Interface: AxSpan
Methods
addEvent()
addEvent(
name
,attributesOrStartTime
?,startTime
?):AxSpan
Parameters
• name: string
• attributesOrStartTime?: Readonly
<AxSpanAttributes
| AxSpanTimeInput
>
• startTime?: Readonly
<AxSpanTimeInput
>
Returns
Defined in
end()
end(endTime)
end(
endTime
?):void
Parameters
• endTime?: Readonly
<AxSpanTimeInput
>
Returns
void
Defined in
end()
end():
void
Returns
void
Defined in
isRecording()
isRecording():
boolean
Returns
boolean
Defined in
recordAxSpanException()
recordAxSpanException(
exception
,time
?):void
Parameters
• exception: Readonly
<AxSpanException
>
• time?: Readonly
<AxSpanTimeInput
>
Returns
void
Defined in
setAttribute()
setAttribute(
key
,value
):AxSpan
Parameters
• key: string
• value: AxSpanAttributeValue
Returns
Defined in
setAttributes()
setAttributes(
attributes
):AxSpan
Parameters
• attributes: AxSpanAttributes
Returns
Defined in
setStatus()
setStatus(status)
setStatus(
status
):AxSpan
Parameters
• status: Readonly
<AxSpanStatus
>
Returns
Defined in
setStatus(status)
setStatus(
status
):void
Parameters
• status: Readonly
<AxSpanStatus
>
Returns
void
Defined in
spanContext()
spanContext():
AxSpanContext
Returns
Defined in
updateName()
updateName(
name
):AxSpan
Parameters
• name: string