# traceEnd() function · @imqueue/opentelemetry

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

Ends the span [traceStart()](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracestart/) 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-closed name is a silent no-op, not an error — safe to call from a `finally` block without first checking whether the span was ever started. The flip side is that a misspelled name fails silently and leaves the real span open and unexported.

