Skip to content

Commit 7f7b736

Browse files
committed
chore(api): grpc server (remove graphql)
1 parent 9cf8e20 commit 7f7b736

101 files changed

Lines changed: 2240 additions & 15241 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 12 additions & 155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ name = "vector"
1919
test = false
2020
bench = false
2121

22-
[[bin]]
23-
name = "graphql-schema"
24-
path = "src/api/schema/gen.rs"
25-
test = false
26-
bench = false
27-
required-features = ["default-no-api-client"]
28-
2922
[[bin]]
3023
name = "secret-backend-example"
3124
path = "src/config/loading/secret_backend_example.rs"
@@ -333,10 +326,6 @@ smpl_jwt = { version = "0.8.0", default-features = false, optional = true }
333326
lapin = { version = "2.5.3", default-features = false, features = ["native-tls"], optional = true }
334327
deadpool = { version = "0.12.2", default-features = false, features = ["managed", "rt_tokio_1"], optional = true }
335328

336-
# API
337-
async-graphql = { version = "7.0.17", default-features = false, optional = true, features = ["chrono", "playground"] }
338-
async-graphql-warp = { version = "7.0.17", default-features = false, optional = true }
339-
340329
# Opentelemetry
341330

342331
hex = { version = "0.4.3", default-features = false, optional = true }
@@ -547,9 +536,11 @@ docker = ["dep:bollard", "dep:dirs-next"]
547536

548537
# API
549538
api = [
550-
"dep:async-graphql",
551-
"dep:async-graphql-warp",
552539
"dep:base64",
540+
"dep:tonic",
541+
"dep:prost",
542+
"dep:prost-types",
543+
"protobuf-build",
553544
"vector-lib/api",
554545
]
555546

LICENSE-3rdparty.csv

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ arrow-row,https://github.com/apache/arrow-rs,Apache-2.0,Apache Arrow <dev@arrow.
4444
arrow-schema,https://github.com/apache/arrow-rs,Apache-2.0,Apache Arrow <dev@arrow.apache.org>
4545
arrow-select,https://github.com/apache/arrow-rs,Apache-2.0,Apache Arrow <dev@arrow.apache.org>
4646
arrow-string,https://github.com/apache/arrow-rs,Apache-2.0,Apache Arrow <dev@arrow.apache.org>
47-
ascii,https://github.com/tomprogrammer/rust-ascii,Apache-2.0 OR MIT,"Thomas Bahn <thomas@thomas-bahn.net>, Torbjørn Birch Moltu <t.b.moltu@lyse.net>, Simon Sapin <simon.sapin@exyr.org>"
4847
async-broadcast,https://github.com/smol-rs/async-broadcast,MIT OR Apache-2.0,"Stjepan Glavina <stjepang@gmail.com>, Yoshua Wuyts <yoshuawuyts@gmail.com>, Zeeshan Ali Khan <zeeshanak@gnome.org>"
4948
async-channel,https://github.com/smol-rs/async-channel,Apache-2.0 OR MIT,Stjepan Glavina <stjepang@gmail.com>
5049
async-compression,https://github.com/Nullus157/async-compression,MIT OR Apache-2.0,"Wim Looman <wim@nemo157.com>, Allen Bui <fairingrey@gmail.com>"
@@ -56,7 +55,6 @@ async-graphql,https://github.com/async-graphql/async-graphql,MIT OR Apache-2.0,"
5655
async-graphql-derive,https://github.com/async-graphql/async-graphql,MIT OR Apache-2.0,"sunli <scott_s829@163.com>, Koxiaet"
5756
async-graphql-parser,https://github.com/async-graphql/async-graphql,MIT OR Apache-2.0,"sunli <scott_s829@163.com>, Koxiaet"
5857
async-graphql-value,https://github.com/async-graphql/async-graphql,MIT OR Apache-2.0,"sunli <scott_s829@163.com>, Koxiaet"
59-
async-graphql-warp,https://github.com/async-graphql/async-graphql,MIT OR Apache-2.0,"sunli <scott_s829@163.com>, Koxiaet"
6058
async-io,https://github.com/smol-rs/async-io,Apache-2.0 OR MIT,Stjepan Glavina <stjepang@gmail.com>
6159
async-lock,https://github.com/smol-rs/async-lock,Apache-2.0 OR MIT,Stjepan Glavina <stjepang@gmail.com>
6260
async-nats,https://github.com/nats-io/nats.rs,Apache-2.0,"Tomasz Pietrek <tomasz@nats.io>, Casper Beyer <caspervonb@pm.me>"
@@ -318,11 +316,6 @@ glob,https://github.com/rust-lang/glob,MIT OR Apache-2.0,The Rust Project Develo
318316
gloo-timers,https://github.com/rustwasm/gloo/tree/master/crates/timers,MIT OR Apache-2.0,Rust and WebAssembly Working Group
319317
goauth,https://github.com/durch/rust-goauth,MIT,Drazen Urch <github@drazenur.ch>
320318
governor,https://github.com/boinkor-net/governor,MIT,Andreas Fuchs <asf@boinkor.net>
321-
graphql-introspection-query,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
322-
graphql-parser,https://github.com/graphql-rust/graphql-parser,MIT OR Apache-2.0,Paul Colomiets <paul@colomiets.name>
323-
graphql_client,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
324-
graphql_client_codegen,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
325-
graphql_query_derive,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
326319
greptime-proto,https://github.com/GreptimeTeam/greptime-proto,Apache-2.0,The greptime-proto Authors
327320
greptimedb-ingester,https://github.com/GreptimeTeam/greptimedb-ingester-rust,Apache-2.0,The greptimedb-ingester Authors
328321
grok,https://github.com/mmastrac/grok,Apache-2.0,"Matt Mastracci <matthew@mastracci.com>, Michael Nitschinger <michael@nitschinger.at>"
@@ -844,7 +837,6 @@ unicode-width,https://github.com/unicode-rs/unicode-width,MIT OR Apache-2.0,"kwa
844837
unicode-xid,https://github.com/unicode-rs/unicode-xid,MIT OR Apache-2.0,"erick.tryzelaar <erick.tryzelaar@gmail.com>, kwantam <kwantam@gmail.com>, Manish Goregaokar <manishsmail@gmail.com>"
845838
unit-prefix,https://codeberg.org/commons-rs/unit-prefix,MIT,"Fabio Valentini <decathorpe@gmail.com>, Benjamin Sago <ogham@bsago.me>"
846839
universal-hash,https://github.com/RustCrypto/traits,MIT OR Apache-2.0,RustCrypto Developers
847-
unreachable,https://github.com/reem/rust-unreachable,MIT OR Apache-2.0,Jonathan Reem <jonathan.reem@gmail.com>
848840
unsafe-libyaml,https://github.com/dtolnay/unsafe-libyaml,MIT,David Tolnay <dtolnay@gmail.com>
849841
untrusted,https://github.com/briansmith/untrusted,ISC,Brian Smith <brian@briansmith.org>
850842
uom,https://github.com/iliekturtles/uom,Apache-2.0 OR MIT,Mike Boutin <mike.boutin@gmail.com>
@@ -858,7 +850,6 @@ utf8parse,https://github.com/alacritty/vte,Apache-2.0 OR MIT,"Joe Wilm <joe@jwil
858850
uuid,https://github.com/uuid-rs/uuid,Apache-2.0 OR MIT,"Ashley Mannix<ashleymannix@live.com.au>, Dylan DPC<dylan.dpc@gmail.com>, Hunar Roop Kahlon<hunar.roop@gmail.com>"
859851
uuid-simd,https://github.com/Nugine/simd,MIT,The uuid-simd Authors
860852
valuable,https://github.com/tokio-rs/valuable,MIT,The valuable Authors
861-
void,https://github.com/reem/rust-void,MIT,Jonathan Reem <jonathan.reem@gmail.com>
862853
vrl,https://github.com/vectordotdev/vrl,MPL-2.0,Vector Contributors <vector@datadoghq.com>
863854
vsimd,https://github.com/Nugine/simd,MIT,The vsimd Authors
864855
vte,https://github.com/alacritty/vte,Apache-2.0 OR MIT,"Joe Wilm <joe@jwilm.com>, Christian Duerr <contact@christianduerr.com>"

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ fn main() {
120120
println!("cargo:rerun-if-changed=proto/vector/dd_trace.proto");
121121
println!("cargo:rerun-if-changed=proto/vector/ddsketch_full.proto");
122122
println!("cargo:rerun-if-changed=proto/vector/vector.proto");
123+
println!("cargo:rerun-if-changed=proto/vector/observability.proto");
123124

124125
// Create and store the "file descriptor set" from the compiled Protocol Buffers packages.
125126
//
@@ -147,6 +148,7 @@ fn main() {
147148
"proto/third-party/google/pubsub/v1/pubsub.proto",
148149
"proto/third-party/google/rpc/status.proto",
149150
"proto/vector/vector.proto",
151+
"proto/vector/observability.proto",
150152
],
151153
&[
152154
"proto/third-party",

0 commit comments

Comments
 (0)