Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracing support for GraphQL objects, interfaces and subscriptions #972

Draft
wants to merge 91 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
e0f7eb5
Add tracing support
mihai-dinculescu Jul 25, 2020
419520d
Merge branch 'master' into add_tracing_support
LegNeato Jul 28, 2020
c1f9e5f
Merge branch 'master' into add_tracing_support
LegNeato Jul 29, 2020
753c80f
Rocket can now compile on stable
LegNeato Jul 28, 2020
c599bae
Remove `boxed` in favor of `pin`.
LegNeato Jul 29, 2020
b556934
Add tracing support example
LegNeato Jul 29, 2020
0134da3
Add some coarse execution tracing
LegNeato Jul 29, 2020
5c888a8
Remove old comment / docs
LegNeato Jul 29, 2020
ef2da9b
Merge branch 'master' into add_tracing_support
LegNeato Jul 29, 2020
01b3453
Fix book tests
LegNeato Jul 29, 2020
7ac7304
fix up some imports
LegNeato Jul 29, 2020
06687dd
Add back subscriber Cargo.toml instructions
LegNeato Jul 29, 2020
697a743
Change trace errors to trace
mihai-dinculescu Jul 29, 2020
f2977d5
Tracing unit tests
mihai-dinculescu Jul 29, 2020
6c3654c
Tracing unit tests names
mihai-dinculescu Jul 29, 2020
7f746de
Revert "Rocket can now compile on stable"
LegNeato Jul 29, 2020
64cad08
Merge branch 'master' into add_tracing_support
LegNeato Jul 30, 2020
d7acba9
Merge branch 'master' into add_tracing_support
LegNeato Aug 10, 2020
88dc9c4
Fix tracing spans
LegNeato Aug 14, 2020
8a2f6ec
Do not include trailing newline on the last error
LegNeato Aug 14, 2020
83fd44d
Standard tracing labels on snake_case
LegNeato Aug 14, 2020
c92dd87
Add a validation error case to the tracing example
LegNeato Aug 14, 2020
64d8e11
Use $crate everywhere
LegNeato Aug 15, 2020
cdbc0ce
Add other levels to span macros
LegNeato Aug 15, 2020
65ab688
Merge branch 'master' into add_tracing_support
LegNeato Aug 19, 2020
6cf48d9
Merge branch 'master' into add_tracing_support
LegNeato Aug 21, 2020
5f8a4ca
Merge branch 'master' into add_tracing_support
LegNeato Sep 3, 2020
ae1054e
Merge branch 'master' into add_tracing_support
LegNeato Oct 3, 2020
5938345
Use the released tracing crate
mihai-dinculescu Oct 3, 2020
8bc07f6
Fix email address
LegNeato Oct 29, 2020
82497d3
Standardize on snake case for tracing
LegNeato Oct 29, 2020
79102a3
Add tracing support
mihai-dinculescu Jul 25, 2020
6a16cf8
Rocket can now compile on stable
LegNeato Jul 28, 2020
11bb5e2
Add tracing support example
LegNeato Jul 29, 2020
57ecb56
Add some coarse execution tracing
LegNeato Jul 29, 2020
cff6678
Remove old comment / docs
LegNeato Jul 29, 2020
cb3ee27
Fix book tests
LegNeato Jul 29, 2020
0d52c50
fix up some imports
LegNeato Jul 29, 2020
7f24509
Add back subscriber Cargo.toml instructions
LegNeato Jul 29, 2020
cb7ab0c
Change trace errors to trace
mihai-dinculescu Jul 29, 2020
7b02ccc
Tracing unit tests
mihai-dinculescu Jul 29, 2020
4000f1e
Tracing unit tests names
mihai-dinculescu Jul 29, 2020
e968c4b
Revert "Rocket can now compile on stable"
LegNeato Jul 29, 2020
58fed76
Fix tracing spans
LegNeato Aug 14, 2020
7b5ad7e
Do not include trailing newline on the last error
LegNeato Aug 14, 2020
c34a1c2
Standard tracing labels on snake_case
LegNeato Aug 14, 2020
26407e2
Add a validation error case to the tracing example
LegNeato Aug 14, 2020
94279d1
Use $crate everywhere
LegNeato Aug 15, 2020
bf35077
Add other levels to span macros
LegNeato Aug 15, 2020
2365016
Use the released tracing crate
mihai-dinculescu Oct 3, 2020
ca744b5
Fix email address
LegNeato Oct 29, 2020
62acd3f
Standardize on snake case for tracing
LegNeato Oct 29, 2020
4d7797a
Merge master
LegNeato Oct 29, 2020
72a28d4
Remove rustfmt option causing breakage
LegNeato Oct 29, 2020
2977b1f
Remove subscription helper mod
LegNeato Oct 29, 2020
264030f
Merge branch 'master' into add_tracing_support
LegNeato Nov 13, 2020
7a1dfdc
Fix type checking on fragments and implement e2e tests to cover this …
ArsileLuci Apr 29, 2021
d427f80
Add CHANGELOG note
ArsileLuci Apr 29, 2021
a34294c
Merge branch 'master' into ArsileLuci-master
tyranron Apr 29, 2021
64cb389
Some corrections [skip ci]
tyranron Apr 29, 2021
a340673
Fix interface fields not being resolved for sync context and rework a…
ArsileLuci Apr 29, 2021
28ebd31
Minor corrections
ArsileLuci Apr 29, 2021
9e46dce
Small style corrections
tyranron Apr 30, 2021
7c6fe5c
Merge master
ArsileLuci Jul 12, 2021
72d8cfa
Merge master
ArsileLuci Jul 12, 2021
d57126a
Merge master
ArsileLuci Jul 12, 2021
d0558a4
Impl async resolve tracing
ArsileLuci Jul 12, 2021
3c555dd
Impl codegen, add initial docs and tests
ArsileLuci Jul 21, 2021
5b1fed8
Fully hide tracing behind feature gate, add docs
ArsileLuci Jul 22, 2021
05a1432
Add test for subscriptions
ArsileLuci Jul 23, 2021
174593e
Extend example, book and small test corrections [run ci]
ArsileLuci Jul 23, 2021
469a46e
Merge branch 'master' into tracing-support
ArsileLuci Jul 23, 2021
2fe4106
Fix book imports [run ci]
ArsileLuci Jul 23, 2021
bb0e87d
Merge branch 'tracing-support' of https://github.com/ArsileLuci/junip…
ArsileLuci Jul 23, 2021
7b9ac11
Fix tokio dependency in book [run ci]
ArsileLuci Jul 23, 2021
2772b32
Fix book build [run ci]
ArsileLuci Jul 23, 2021
b2a285a
Minor corrections [run ci]
ArsileLuci Jul 23, 2021
33d6952
Some corrections
tyranron Jul 23, 2021
1af4115
WIP
ArsileLuci Jul 26, 2021
46c76bc
Refactor
ArsileLuci Jul 27, 2021
5dbdc94
Book corrections
ArsileLuci Jul 27, 2021
07bae4b
Fetch upstream
ArsileLuci Aug 12, 2021
c256a2e
Restore tracing codegen
ArsileLuci Aug 12, 2021
123a87b
Book and docs correction
ArsileLuci Aug 13, 2021
3420e8f
fmt fix
ArsileLuci Aug 13, 2021
7e31803
Impl sigils
ArsileLuci Aug 15, 2021
ae02db7
Impl field::Empty
ArsileLuci Aug 16, 2021
e69f261
Improve subscription tracing [run ci]
ArsileLuci Aug 16, 2021
c22ef43
Remove redundant code
ArsileLuci Aug 17, 2021
a2e43fc
Merge branch 'graphql-rust:master' into tracing-support
ArsileLuci Aug 31, 2021
4861c24
Small corrections [run-ci]
ArsileLuci Aug 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"juniper_codegen",
"juniper",
"examples/basic_subscriptions",
"examples/tracing_support",
"examples/warp_async",
"examples/warp_subscriptions",
"examples/actix_subscriptions",
Expand Down
2 changes: 2 additions & 0 deletions docs/book/content/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
- [Hyper](servers/hyper.md)
- [Third Party Integrations](servers/third-party.md)

- [Tracing](tracing/index.md)

- [Advanced Topics](advanced/index.md)

- [Introspection](advanced/introspection.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/book/content/advanced/implicit_and_explicit_null.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ In Juniper, this can be done using the `Nullable` type:
# extern crate juniper;
use juniper::{FieldResult, Nullable};

#[derive(juniper::GraphQLInputObject)]
#[derive(Debug, juniper::GraphQLInputObject)]
struct UserPatchInput {
pub favorite_number: Nullable<i32>,
pub least_favorite_number: Nullable<i32>,
Expand Down
4 changes: 2 additions & 2 deletions docs/book/content/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use juniper::{
# fn insert_human(&self, _human: &NewHuman) -> FieldResult<Human> { Err("")? }
# }

#[derive(GraphQLEnum)]
#[derive(Debug, GraphQLEnum)]
enum Episode {
NewHope,
Empire,
Expand All @@ -57,7 +57,7 @@ struct Human {

// There is also a custom derive for mapping GraphQL input objects.

#[derive(GraphQLInputObject)]
#[derive(Debug, GraphQLInputObject)]
#[graphql(description = "A humanoid creature in the Star Wars universe")]
struct NewHuman {
name: String,
Expand Down
Loading