Skip to content

Commit dadf93b

Browse files
committed
chore: fix example to use original exporter type
1 parent fa1cdb8 commit dadf93b

File tree

1 file changed

+1
-1
lines changed
  • examples/self-diagnostics/src

1 file changed

+1
-1
lines changed

examples/self-diagnostics/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn init_logger_provider() -> opentelemetry_sdk::logs::LoggerProvider {
110110

111111
fn init_meter_provider() -> opentelemetry_sdk::metrics::SdkMeterProvider {
112112
let exporter = MetricsExporter::builder()
113-
.with_tonic()
113+
.with_http()
114114
.with_endpoint("http://localhost:4318/v1/metrics")
115115
.build()
116116
.unwrap();

0 commit comments

Comments
 (0)