Skip to content

Commit

Permalink
fix(graph-proxy): use custom telemetry library
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Feb 3, 2025
1 parent 215f8a7 commit 5f6a9a2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 125 deletions.
23 changes: 17 additions & 6 deletions graph-proxy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions graph-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ derive_more = { version = "1.0.0", features = [
] }
dotenvy = { version = "0.15.7" }
lazy_static = { version = "1.5.0" }
opentelemetry = { version = "0.27.1" }
opentelemetry-otlp = { version = "0.27.0", features = ["metrics"] }
opentelemetry-semantic-conventions = "0.27.0"
opentelemetry_sdk = { version = "0.27.1", features = ["rt-tokio"] }
regex = "1.11.1"
reqwest = { version = "0.12.9", default-features = false, features = [
"rustls-tls",
Expand All @@ -42,11 +38,10 @@ reqwest = { version = "0.12.9", default-features = false, features = [
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { version = "2.0.11" }
telemetry = { path = "../telemetry" }
tokio = { version = "1.43.0", features = ["macros", "net", "rt-multi-thread"] }
tower-http = { version = "0.6.2", features = ["cors"] }
tracing = { version = "0.1.41" }
tracing-opentelemetry = { version = "0.28.0" }
tracing-subscriber = { version = "0.3.19" }
url = { version = "2.5.4" }

[dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions graph-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ COPY argo-workflows-openapi/Cargo.toml argo-workflows-openapi/Cargo.toml
COPY argo-workflows-openapi/build.rs argo-workflows-openapi/build.rs
COPY argo-workflows-openapi/src/lib.rs argo-workflows-openapi/src/lib.rs
COPY Cargo.toml Cargo.lock ./
COPY ../telemetry telemetry

RUN mkdir src \
&& echo "fn main() {}" > src/main.rs \
&& touch --date @0 src/main.rs \
&& cargo build --release

COPY . .
RUN ln -s /telemetry /app/telemetry

RUN touch src/main.rs \
&& cargo build --release
Expand Down
2 changes: 0 additions & 2 deletions graph-proxy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

/// GraphQL resolvers
mod graphql;
/// OpenTelemetry setup and configuration
mod telemetry;

use async_graphql::{http::GraphiQLSource, SDLExportOptions};
use axum::{response::Html, routing::get, Router};
Expand Down
111 changes: 0 additions & 111 deletions graph-proxy/src/telemetry.rs

This file was deleted.

0 comments on commit 5f6a9a2

Please sign in to comment.