Skip to content

Commit c79b60e

Browse files
committed
chore(api): grpc server (remove graphql)
1 parent dbc805a commit c79b60e

File tree

98 files changed

+1911
-15604
lines changed

Some content is hidden

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

98 files changed

+1911
-15604
lines changed

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"
@@ -325,10 +318,6 @@ smpl_jwt = { version = "0.8.0", default-features = false, optional = true }
325318
lapin = { version = "2.5.3", default-features = false, features = ["native-tls"], optional = true }
326319
deadpool = { version = "0.12.2", default-features = false, features = ["managed", "rt_tokio_1"], optional = true }
327320

328-
# API
329-
async-graphql = { version = "7.0.17", default-features = false, optional = true, features = ["chrono", "playground"] }
330-
async-graphql-warp = { version = "7.0.17", default-features = false, optional = true }
331-
332321
# Opentelemetry
333322

334323
hex = { version = "0.4.3", default-features = false, optional = true }
@@ -538,9 +527,11 @@ docker = ["dep:bollard", "dep:dirs-next"]
538527

539528
# API
540529
api = [
541-
"dep:async-graphql",
542-
"dep:async-graphql-warp",
543530
"dep:base64",
531+
"dep:tonic",
532+
"dep:prost",
533+
"dep:prost-types",
534+
"protobuf-build",
544535
"vector-lib/api",
545536
]
546537

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>"
@@ -317,11 +315,6 @@ glob,https://github.com/rust-lang/glob,MIT OR Apache-2.0,The Rust Project Develo
317315
gloo-timers,https://github.com/rustwasm/gloo/tree/master/crates/timers,MIT OR Apache-2.0,Rust and WebAssembly Working Group
318316
goauth,https://github.com/durch/rust-goauth,MIT,Drazen Urch <github@drazenur.ch>
319317
governor,https://github.com/boinkor-net/governor,MIT,Andreas Fuchs <asf@boinkor.net>
320-
graphql-introspection-query,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
321-
graphql-parser,https://github.com/graphql-rust/graphql-parser,MIT OR Apache-2.0,Paul Colomiets <paul@colomiets.name>
322-
graphql_client,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
323-
graphql_client_codegen,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
324-
graphql_query_derive,https://github.com/graphql-rust/graphql-client,Apache-2.0 OR MIT,Tom Houlé <tom@tomhoule.com>
325318
greptime-proto,https://github.com/GreptimeTeam/greptime-proto,Apache-2.0,The greptime-proto Authors
326319
greptimedb-ingester,https://github.com/GreptimeTeam/greptimedb-ingester-rust,Apache-2.0,The greptimedb-ingester Authors
327320
grok,https://github.com/mmastrac/grok,Apache-2.0,"Matt Mastracci <matthew@mastracci.com>, Michael Nitschinger <michael@nitschinger.at>"
@@ -834,7 +827,6 @@ unicode-truncate,https://github.com/Aetf/unicode-truncate,MIT OR Apache-2.0,Aetf
834827
unicode-width,https://github.com/unicode-rs/unicode-width,MIT OR Apache-2.0,"kwantam <kwantam@gmail.com>, Manish Goregaokar <manishsmail@gmail.com>"
835828
unit-prefix,https://codeberg.org/commons-rs/unit-prefix,MIT,"Fabio Valentini <decathorpe@gmail.com>, Benjamin Sago <ogham@bsago.me>"
836829
universal-hash,https://github.com/RustCrypto/traits,MIT OR Apache-2.0,RustCrypto Developers
837-
unreachable,https://github.com/reem/rust-unreachable,MIT OR Apache-2.0,Jonathan Reem <jonathan.reem@gmail.com>
838830
unsafe-libyaml,https://github.com/dtolnay/unsafe-libyaml,MIT,David Tolnay <dtolnay@gmail.com>
839831
untrusted,https://github.com/briansmith/untrusted,ISC,Brian Smith <brian@briansmith.org>
840832
uom,https://github.com/iliekturtles/uom,Apache-2.0 OR MIT,Mike Boutin <mike.boutin@gmail.com>
@@ -848,7 +840,6 @@ utf8parse,https://github.com/alacritty/vte,Apache-2.0 OR MIT,"Joe Wilm <joe@jwil
848840
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>"
849841
uuid-simd,https://github.com/Nugine/simd,MIT,The uuid-simd Authors
850842
valuable,https://github.com/tokio-rs/valuable,MIT,The valuable Authors
851-
void,https://github.com/reem/rust-void,MIT,Jonathan Reem <jonathan.reem@gmail.com>
852843
vrl,https://github.com/vectordotdev/vrl,MPL-2.0,Vector Contributors <vector@datadoghq.com>
853844
vsimd,https://github.com/Nugine/simd,MIT,The vsimd Authors
854845
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)