@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
17 lines (16 loc) • 1.05 kB
TypeScript
import type { Resource } from "@opentelemetry/resources";
import { MeterProvider } from "@opentelemetry/sdk-metrics";
import { type SpanProcessor } from "@opentelemetry/sdk-trace-base";
/**
* @description Builds a batching span processor that ships spans to an OTLP/HTTP endpoint.
* @param endpoint {string} - OTLP base URL; `/v1/traces` is appended.
* @returns {SpanProcessor | null} The processor, or `null` (after a warning) when the exporter cannot be created.
*/
export declare function createOtlpSpanProcessor(endpoint: string): SpanProcessor | null;
/**
* @description Builds a meter provider that exports metrics to an OTLP/HTTP endpoint and registers it as the global meter provider.
* @param endpoint {string} - OTLP base URL; `/v1/metrics` is appended.
* @param resource {Resource} - Resource describing the service.
* @returns {MeterProvider | null} The provider, or `null` (after a warning) when it cannot be created.
*/
export declare function createOtlpMeterProvider(endpoint: string, resource: Resource): MeterProvider | null;