# TracingPluginType.startSpan() method · @imqueue/datadog

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

Starts a span.

**Signature:**

```typescript
startSpan(name: string, options?: StartSpanOptions, enterOrCtx?: boolean | object): any;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| name | string | operation name |
| options | [StartSpanOptions](https://imqueue.org/api/datadog/latest/datadog.startspanoptions/) | _(Optional)_ span attributes; see [StartSpanOptions](https://imqueue.org/api/datadog/latest/datadog.startspanoptions/) |
| enterOrCtx | boolean \| object | _(Optional)_ `true` enters the span into the async-local store, so spans created afterwards become its children. Use it for server spans and NOT for client spans, which must not become the ambient parent while awaiting a reply. |


**Returns:**

any

