( operation: OperationBinding, args: Record<string, unknown>, endpoint: string, resolvedHeaders: Record<string, string>, resolvedQueryParams: Record<string, string>, httpClientLayer: Layer.Layer<HttpClient.HttpClient>, )
| 149 | // --------------------------------------------------------------------------- |
| 150 | |
| 151 | export const invokeWithLayer = ( |
| 152 | operation: OperationBinding, |
| 153 | args: Record<string, unknown>, |
| 154 | endpoint: string, |
| 155 | resolvedHeaders: Record<string, string>, |
| 156 | resolvedQueryParams: Record<string, string>, |
| 157 | httpClientLayer: Layer.Layer<HttpClient.HttpClient>, |
| 158 | ) => |
| 159 | invoke(operation, args, endpoint, resolvedHeaders, resolvedQueryParams).pipe( |
| 160 | Effect.provide(httpClientLayer), |
| 161 | Effect.withSpan("plugin.graphql.invoke", { |
| 162 | attributes: { |
| 163 | "plugin.graphql.endpoint": endpointForTelemetry(endpoint), |
| 164 | "plugin.graphql.operation_kind": operation.kind, |
| 165 | "plugin.graphql.field_name": operation.fieldName, |
| 166 | }, |
| 167 | }), |
| 168 | ); |
no test coverage detected