# TracedOptions interface · @imqueue/opentelemetry

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

Options for the `traced` method decorator. Every field is optional at the call site — `traced()` takes a `Partial` of this and fills the rest in.

**Signature:**

```typescript
export interface TracedOptions 
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [kind](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracedoptions.kind/) |  | [TraceKind](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracekind/) | Whether the decorated method represents work this process serves or work it calls out for. Decides the OpenTelemetry span kind, and is also recorded as the `span.kind` attribute. Defaults to [TraceKind.SERVER](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracekind/). |
| [tags?](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracedoptions.tags/) |  | [TraceAttributes](https://imqueue.org/api/opentelemetry/latest/opentelemetry.traceattributes/) | _(Optional)_ Extra attributes to set on every span the decorator creates. Applied after the automatic ones, so a key used here overrides the automatic value — including `resource.name`, if you want to name the operation yourself. |
| [tracerName?](https://imqueue.org/api/opentelemetry/latest/opentelemetry.tracedoptions.tracername/) |  | string | _(Optional)_ Name of the tracer to create spans with, `'basic'` when omitted. Only worth setting to separate one subsystem's spans from another's; it does not affect where spans are exported. |

