import dc from 'node:diagnostics_channel';
import type { GraphQLChannelContextByName } from '../diagnostics.ts';
import type { TestTracingChannel } from './diagnosticsTracing.ts';
export function getTracingChannel<
TName extends keyof GraphQLChannelContextByName,
>(name: TName): TestTracingChannel<GraphQLChannelContextByName[TName]>;
export function getTracingChannel(name: string): TestTracingChannel;
export function getTracingChannel(name: string): TestTracingChannel {
return dc.tracingChannel(name) as TestTracingChannel;
}