# StartSpanOptions interface · @imqueue/datadog

Source: https://imqueue.org/api/datadog/latest/datadog.startspanoptions/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/datadog 3.2.0 — generated reference, not hand-written

Options accepted by `TracingPlugin#startSpan()`.

**Signature:**

```typescript
export interface StartSpanOptions 
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [childOf?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.childof/) |  | any | _(Optional)_ Span to parent the new one to. Pass `null` explicitly to force a root span — omitting it lets the tracer pick whatever is active, which is rarely what an entry point wants. |
| [kind?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.kind/) |  | string | _(Optional)_ Datadog span kind, `'client'` or `'server'`. |
| [meta?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.meta/) |  | Record<string, any> | _(Optional)_ String tags for the span. |
| [metrics?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.metrics/) |  | Record<string, number> | _(Optional)_ Numeric measurements for the span. |
| [resource?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.resource/) |  | string | _(Optional)_ What the span operated on — the field Datadog groups by. |
| [service?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.service/) |  | string | _(Optional)_ Service the span is attributed to. |
| [type?](https://imqueue.org/api/datadog/latest/datadog.startspanoptions.type/) |  | string | _(Optional)_ Span type, e.g. `'messaging'`. |

