Skip to main content
Version: 2.x

Class: OpenTelemetryInstrumentation

Defined in: javascript/src/telemetry/opentelemetry.ts:36

OpenTelemetry API-only adapter. It never creates an SDK or exporter.

Implements​

Constructors​

Constructor​

new OpenTelemetryInstrumentation(options?): OpenTelemetryInstrumentation

Defined in: javascript/src/telemetry/opentelemetry.ts:41

Parameters​

options?​

OpenTelemetryInstrumentationOptions = {}

Returns​

OpenTelemetryInstrumentation

Methods​

run()​

run<T>(operation, attributes, callback): Promise<T>

Defined in: javascript/src/telemetry/opentelemetry.ts:58

Type Parameters​

T​

T

Parameters​

operation​

string

attributes​

TelemetryAttributes | undefined

callback​

() => Promise<T>

Returns​

Promise<T>

Implementation of​

Instrumentation.run