- TIBCO BusinessEvents®
- OpenTelemetry
- SpanBuilder

# SpanBuilder.setAttribute()

## Signature

`setAttribute(SpanBuilder spanBuilder, String name, Object value)`

## Domain

ACTION

## Description

Set attribute and returns SpanBuilder object.

## Parameters

Name | Type | Description
--- | --- | ---
`spanBuilder` | `Object` | A SpanBuilder object.
`name` | `String` | Attribute name
`value` | `Object` | Attribute value. Only supports String, Long, Double and Boolean.

## Returns

Type | Description
--- | ---
`Object` | Returns a SpanBuilder object.

## Cautions

none