# traceEnd() function · @imqueue/datadog

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

Finishes the span [trace()](https://imqueue.org/api/datadog/latest/datadog.trace/) opened under this name and releases it, so the name can be reused.

**Signature:**

```typescript
export declare function traceEnd(name: string): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| name | string | the name the span was started under |


**Returns:**

void

## Remarks

An unknown or already-finished name is a silent no-op, not an error — safe to call from a `finally` block without checking whether the span was started. The flip side is that a misspelled name fails silently and leaves the real span open and unreported.

