TracedOptions interface

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:

export interface TracedOptions 

Properties

Property

Modifiers

Type

Description

kind

TraceKind

Whether the decorated method serves work or calls out for it. Reported as the span.kind tag. Defaults to TraceKind.SERVER.

tags?

TraceTags

(Optional) Extra tags for every span the decorator creates. Applied after the automatic ones, so a key used here overrides the automatic value — including resource.name, to name the operation yourself.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.