hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
23 lines (14 loc) • 686 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [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)