UNPKG

@wundergraph/apollo-to-cosmo-metrics

Version:

An apollo gateway plugin that exports schema usage metrics to cosmo

12 lines (11 loc) 390 B
import { type SchemaUsageInfoAggregation } from '../generated/graphqlmetrics/v1/graphqlmetrics_pb.js'; export type CosmoConfig = { routerToken: string; endpointUrl: string; }; export declare class CosmoClient { private readonly client; private readonly config; constructor(config: CosmoConfig); reportMetrics(reports: SchemaUsageInfoAggregation[]): Promise<void>; }