We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb1945 commit ea6e2d5Copy full SHA for ea6e2d5
1 file changed
src/diagnostics.ts
@@ -165,25 +165,6 @@ export function maybeTraceSync<T>(
165
return channel.traceSync(fn, ctxFactory());
166
}
167
168
-/**
169
- * Publish a promise-returning operation through the named graphql tracing
170
- * channel, short-circuiting to `fn()` when the channel isn't registered or
171
- * nothing is listening.
172
- *
173
- * @internal
174
- */
175
-export function maybeTracePromise<T>(
176
- name: keyof GraphQLChannels,
177
- ctxFactory: () => object,
178
- fn: () => Promise<T>,
179
-): Promise<T> {
180
- const channel = getChannels()?.[name];
181
- if (!shouldTrace(channel)) {
182
- return fn();
183
- }
184
- return channel.tracePromise(fn, ctxFactory());
185
-}
186
-
187
/**
188
* Publish a mixed sync-or-promise operation through the named graphql tracing
189
* channel.
0 commit comments