- TIBCO BusinessEvents®
- OpenTelemetry
- Span

# Span.setStatus()

## Signature

`Object setStatus(Span span, String status)`

## Domain

ACTION

## Description

Set a status to Span object.

## Parameters

Name | Type | Description
--- | --- | ---
`span` | `Object` | Span object.
`status` | `String` | Status code. Valid status codes: ERROR, OK, UNSET.

## Returns

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

## Cautions

none