@cran/gql.koa
Version:
Cran/GraphQL Koa Server
20 lines (19 loc) • 855 B
TypeScript
import type { Instrumentation } from "@opentelemetry/instrumentation";
import { GraphQLInstrumentation } from "@opentelemetry/instrumentation-graphql";
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
import { KoaInstrumentation } from "@opentelemetry/instrumentation-koa";
import { MetricSpanExporter } from "./MetricSpanExporter";
export declare namespace MetricTracer {
interface Config extends MetricSpanExporter.Config {
instrumentations?: Array<Instrumentation>;
overrideInstrumentations?: boolean;
}
}
export declare class MetricTracer {
private readonly sdk;
constructor(config?: Partial<MetricTracer.Config>);
start(): Promise<void>;
}
export declare namespace MetricTracer {
const defaultInstrumentations: (GraphQLInstrumentation | HttpInstrumentation | KoaInstrumentation)[];
}