method ISpan.setAttributes
ISpan.setAttributes(attributes: Readonly<Record<string, SpanAttributeValue>>): this

Sets multiple attributes on the span.

Parameters

attributes: Readonly<Record<string, SpanAttributeValue>>

Key-value map of attributes

Return Type

this

This span, for chaining

Usage

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