@@ -46,7 +46,6 @@ use opentelemetry::trace::Tracer;
46
46
47
47
fn main () -> Result <(), Box <dyn std :: error :: Error + Send + Sync + 'static >> {
48
48
// use tonic as grpc layer here.
49
- // If you want to use grpcio. enable `grpc-sys` feature and use with_grpcio function here.
50
49
let tracer = opentelemetry_otlp :: new_pipeline ()
51
50
. tracing ()
52
51
. with_exporter (opentelemetry_otlp :: new_exporter (). tonic ())
@@ -71,7 +70,7 @@ automatically.
71
70
``` toml
72
71
[dependencies ]
73
72
opentelemetry_sdk = { version = " *" , features = [" async-std" ] }
74
- opentelemetry-otlp = { version = " *" , features = [" grpc-sys " ] }
73
+ opentelemetry-otlp = { version = " *" , features = [" grpc-tonic " ] }
75
74
```
76
75
77
76
``` rust
@@ -84,26 +83,11 @@ let tracer = opentelemetry_otlp::new_pipeline()
84
83
85
84
## Kitchen Sink Full Configuration
86
85
87
- [ Example] ( https://docs.rs/opentelemetry-otlp/latest/opentelemetry_otlp/#kitchen-sink-full-configuration )
86
+ [ Example] ( https://docs.rs/opentelemetry-otlp/latest/opentelemetry_otlp/#kitchen-sink-full-configuration )
88
87
showing how to override all configuration options.
89
88
90
- Generally there are two parts of configuration. One is metrics config
89
+ Generally there are two parts of configuration. One is metrics config
91
90
or tracing config. Users can config it via [ ` OtlpTracePipeline ` ]
92
91
or [ ` OtlpMetricPipeline ` ] . The other is exporting configuration.
93
92
Users can set those configurations using [ ` OtlpExporterPipeline ` ] based
94
93
on the choice of exporters.
95
-
96
- # Grpc libraries comparison
97
-
98
- Multiple gRPC transport layers are available. [ ` tonic ` ] ( https://crates.io/crates/tonic ) is the default gRPC transport
99
- layer and is enabled by default. [ ` grpcio ` ] ( https://crates.io/crates/grpcio ) is optional.
100
-
101
- | gRPC transport layer | [ hyperium/tonic] ( https://github.com/hyperium/tonic ) | [ tikv/grpc-rs] ( https://github.com/tikv/grpc-rs ) |
102
- | ---| ---| ---|
103
- | Feature | --features=default | --features=grpc-sys |
104
- | gRPC library | [ ` tonic ` ] ( https://crates.io/crates/tonic ) | [ ` grpcio ` ] ( https://crates.io/crates/grpcio ) |
105
- | Transport | [ hyperium/hyper] ( https://github.com/hyperium/hyper ) (Rust) | [ grpc/grpc] ( https://github.com/grpc/grpc ) (C++ binding) |
106
- | TLS support | yes | yes |
107
- | TLS library | rustls | OpenSSL |
108
- | TLS optional | yes | yes |
109
- | Supported .proto generator | [ ` prost ` ] ( https://crates.io/crates/prost ) | [ ` prost ` ] ( https://crates.io/crates/prost ) , [ ` protobuf ` ] ( https://crates.io/crates/protobuf ) |
0 commit comments