File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
opentelemetry-semantic-conventions
scripts/templates/registry/rust Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 2626//! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION)
2727//! .with_unit("By")
2828//! .with_description("Duration of HTTP server requests.")
29- //! .init ();
29+ //! .build ();
3030//! ```
3131
3232{% for root_ns in ctx %}
Original file line number Diff line number Diff line change 2222//! let _tracer = TracerProvider::builder()
2323//! .with_config(config().with_resource(Resource::new(vec![
2424//! KeyValue::new(semconv::resource::SERVICE_NAME, "my-service"),
25- //! KeyValue::new(semconv::resource::SERVICE_NAMESPACE, "my-namespace"),
2625//! ])))
2726//! .build();
2827//! ```
Original file line number Diff line number Diff line change 2121//! let _tracer = TracerProvider::builder()
2222//! .with_config(config().with_resource(Resource::new(vec![
2323//! KeyValue::new(semconv::resource::SERVICE_NAME, "my-service"),
24- //! KeyValue::new(semconv::resource::SERVICE_NAMESPACE, "my-namespace"),
2524//! ])))
2625//! .build();
2726//! ```
You can’t perform that action at this time.
0 commit comments