🔬 InstrumentationScope represents the instrumentation scope information.

Identifies the library, framework, or instrumentation code that generated the telemetry data. This helps with attribution and debugging.

const scope: InstrumentationScope = {
name: "turtle-mining-lib",
version: "2.1.0",
attributes: [
{ key: "library.type", value: { stringValue: "automation" } },
{ key: "library.language", value: { stringValue: "typescript" } }
],
droppedAttributesCount: 0
};
interface InstrumentationScope {
    attributes: KeyValue[];
    droppedAttributesCount: number;
    name: string;
    version: string;
}

Properties

attributes: KeyValue[]

Additional attributes describing the scope

droppedAttributesCount: number

Number of attributes that were dropped due to limits

name: string

Name of the instrumentation scope (e.g., library name)

version: string

Version of the instrumentation scope