Skip to content

Commit 9eb5f0a

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

97 files changed

Lines changed: 1908 additions & 15595 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"
@@ -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

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",

lib/vector-api-client/Cargo.toml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
[package]
22
name = "vector-api-client"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
authors = ["Vector Contributors <vector@datadoghq.com>"]
55
edition = "2024"
66
publish = false
77
license = "MPL-2.0"
88

99
[dependencies]
10+
# gRPC
11+
tonic.workspace = true
12+
prost.workspace = true
13+
prost-types.workspace = true
1014

11-
# Serde
12-
serde.workspace = true
13-
serde_json.workspace = true
14-
15-
# Error handling
16-
anyhow.workspace = true
17-
18-
# Tokio / Futures
15+
# Async
16+
tokio.workspace = true
17+
tokio-stream = { version = "0.1", default-features = false }
1918
futures.workspace = true
20-
tokio = { workspace = true, features = ["macros", "rt", "sync"] }
21-
tokio-stream = { version = "0.1.17", default-features = false, features = ["sync"] }
2219

23-
# GraphQL
24-
graphql_client = { version = "0.14.0", default-features = false, features = ["graphql_query_derive"] }
20+
# Error handling
21+
snafu.workspace = true
2522

26-
# HTTP / WebSockets
27-
reqwest = { version = "0.11.26", default-features = false, features = ["json"] }
28-
tokio-tungstenite = { version = "0.20.1", default-features = false, features = ["connect", "rustls"] }
23+
# Utils
24+
url.workspace = true
2925

30-
# External libs
31-
chrono.workspace = true
32-
clap.workspace = true
33-
url = { version = "2.5.4", default-features = false }
34-
uuid.workspace = true
26+
[build-dependencies]
27+
tonic-build.workspace = true
28+
prost-build.workspace = true

0 commit comments

Comments
 (0)