SpanBuilder.setAttribute()

Signature

setAttribute(SpanBuilder spanBuilder, String name, Object value)

Domain

ACTION

Description

Set attribute and returns SpanBuilder object.

Parameters

NameTypeDescription
spanBuilderObjectA SpanBuilder object.
nameStringAttribute name
valueObjectAttribute value. Only supports String, Long, Double and Boolean.

Returns

TypeDescription
ObjectReturns a SpanBuilder object.

Cautions

none