Skip to content

Commit cb921ae

Browse files
committed
try grpc
1 parent cd81a8d commit cb921ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ingress-rpc/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use opentelemetry::global;
77
//use opentelemetry::{InstrumentationScope, trace::TracerProvider};
88
//use opentelemetry_sdk::trace;
99
use opentelemetry::trace::TracerProvider;
10-
use opentelemetry_otlp::WithHttpConfig;
10+
//use opentelemetry_otlp::WithHttpConfig;
1111
//use opentelemetry_sdk::trace::BatchSpanProcessor;
1212
use opentelemetry_sdk::trace::Sampler;
1313
use opentelemetry_sdk::trace::SimpleSpanProcessor;
@@ -174,9 +174,9 @@ async fn main() -> anyhow::Result<()> {
174174

175175
// https://github.com/commonwarexyz/monorepo/blob/27e6f73fce91fc46ef7170e928cbcf96cc635fea/runtime/src/tokio/tracing.rs#L10
176176
let exporter = SpanExporter::builder()
177-
.with_http()
178-
.with_http_client(reqwest::blocking::Client::new())
179-
//.with_tonic()
177+
//.with_http()
178+
//.with_http_client(reqwest::blocking::Client::new())
179+
.with_tonic()
180180
.with_endpoint(&otlp_endpoint)
181181
.build()?;
182182

0 commit comments

Comments
 (0)