<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [TelemetrySpanOptions](./server.telemetryspanoptions.md)

## TelemetrySpanOptions type

Options for creating a telemetry span.

Use for: configuring `Telemetry.startSpan` calls. Do NOT use for: long-lived spans; keep spans short and scoped to a task.

\*\*Category:\*\* Telemetry

**Signature:**

```typescript
export type TelemetrySpanOptions = {
    operation: TelemetrySpanOperation | string;
    attributes?: Record<string, string | number>;
};
```
**References:** [TelemetrySpanOperation](./server.telemetryspanoperation.md)

