File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
src/hyperlight_host/examples/otlp_tracing Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,13 @@ fn init_tracing_subscriber(addr: &str) -> Result<(), Box<dyn Error + Send + Sync
6464 . build ( ) ?;
6565
6666 let provider = trace:: TracerProvider :: builder ( )
67- . with_config (
68- trace:: Config :: default ( ) . with_resource ( Resource :: from_schema_url (
69- vec ! [
70- KeyValue :: new( SERVICE_NAME , "hyperlight_otel_example" ) ,
71- KeyValue :: new( SERVICE_VERSION , env!( "CARGO_PKG_VERSION" ) ) ,
72- ] ,
73- SCHEMA_URL ,
74- ) ) ,
75- )
67+ . with_resource ( Resource :: from_schema_url (
68+ vec ! [
69+ KeyValue :: new( SERVICE_NAME , "hyperlight_otel_example" ) ,
70+ KeyValue :: new( SERVICE_VERSION , env!( "CARGO_PKG_VERSION" ) ) ,
71+ ] ,
72+ SCHEMA_URL ,
73+ ) )
7674 . with_batch_exporter ( exporter, Tokio )
7775 . build ( ) ;
7876
You can’t perform that action at this time.
0 commit comments