UNPKG

@traceloop/instrumentation-together

Version:
19 lines 836 B
import type * as togetherai from "together-ai"; import { InstrumentationBase, InstrumentationModuleDefinition } from "@opentelemetry/instrumentation"; import { TogetherAIInstrumentationConfig } from "./types"; export declare class TogetherInstrumentation extends InstrumentationBase { protected _config: TogetherAIInstrumentationConfig; constructor(config?: TogetherAIInstrumentationConfig); setConfig(config?: TogetherAIInstrumentationConfig): void; manuallyInstrument(module: typeof togetherai.Together): void; protected init(): InstrumentationModuleDefinition; private patch; private unpatch; private patchTogether; private startSpan; private _streamingWrapPromise; private _wrapPromise; private _shouldSendPrompts; private _endSpan; } //# sourceMappingURL=instrumentation.d.ts.map