UNPKG

langsmith

Version:

Client library to connect to the LangSmith Observability and Evaluation Platform.

14 lines (13 loc) 545 B
import { ReadableSpan, Span, BatchSpanProcessor } from "@opentelemetry/sdk-trace-base"; import { Context } from "@opentelemetry/api"; export declare function isTraceableSpan(span: ReadableSpan): boolean; /** * Span processor that filters out spans that are not LangSmith-related and * usually should not be traced. */ export declare class LangSmithOTLPSpanProcessor extends BatchSpanProcessor { private traceMap; onStart(span: Span, parentContext: Context): void; onEnd(span: ReadableSpan): void; shutdown(): Promise<void>; }