-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default to not generate ftv1 traces (#370)
Federation tracing should only be enabled if the Router/Gateway sends the proper `ftv1` header and value. Currently trace data is generated even if the header is not specified which leads to unnecessary computations of data that will ultimately be discarded by the Router/Gateway.... If header is not specified, we should default to `false` to avoid those unnecessary computations. See: https://www.apollographql.com/docs/federation/metrics/ Supersedes: #368
- Loading branch information
1 parent
18432f6
commit 4b750b8
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -510,7 +510,7 @@ public boolean shouldTrace(ExecutionInput executionInput) { | |
} | ||
} | ||
} | ||
return true; | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters