method ISpan.setAttribute
ISpan.setAttribute(
key: string,
): this

Sets a single attribute on the span.

Parameters

key: string

Attribute name

Attribute value

Return Type

this

This span, for chaining

Usage

import { type ISpan } from "common/src/index.ts";