Span.setAttribute()

Signature

Object setAttribute(Span span, String name, Object value)

Domain

ACTION

Description

Set an atrribute to Span object.

Parameters

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

Returns

TypeDescription
ObjectReturns a Span object.

Cautions

none