- TIBCO BusinessEvents®
- OpenTelemetry
- Span

# Span.setAttribute()

## Signature

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

## Domain

ACTION

## Description

Set an atrribute to Span object.

## Parameters

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

## Returns

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

## Cautions

none