- TIBCO BusinessEvents®
- OpenTelemetry
- SpanBuilder

# SpanBuilder.setSpanKind()

## Signature

`Object setSpanKind(Object spanBuilder, String spanKind)`

## Domain

ACTION

## Description

Set SpanKind and returns SpanBuilder object.

## Parameters

Name | Type | Description
--- | --- | ---
`spanBuilder` | `Object` | A SpanBuilder object.
`spanKind` | `String` | Span Kind. Must be of the following: CLIENT, CONSUMER, INTERNAL, PRODUCER, SERVER.

## Returns

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

## Cautions

none