Skip to content

Commit

Permalink
fix: exclude query plan fetches from field usage count (wundergraph#1297
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JivusAyrus authored Oct 23, 2024
1 parent e942841 commit 437bc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/core/operation_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (m *OperationMetrics) Finish(ctx context.Context, err error, statusCode int
rm.MeasureLatency(ctx, latency, attr...)
rm.MeasureResponseSize(ctx, int64(responseSize), attr...)

if m.trackUsageInfo && opContext != nil {
if m.trackUsageInfo && opContext != nil && !opContext.executionOptions.SkipLoader {
m.routerMetrics.ExportSchemaUsageInfo(opContext, statusCode, err != nil, exportSynchronous)
}
}
Expand Down

0 comments on commit 437bc76

Please sign in to comment.