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 26
26
//! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION)
27
27
//! .with_unit("By")
28
28
//! .with_description("Duration of HTTP server requests.")
29
- //! .init ();
29
+ //! .build ();
30
30
//! ```
31
31
32
32
{% for root_ns in ctx %}
Original file line number Diff line number Diff line change 22
22
//! let _tracer = TracerProvider::builder()
23
23
//! .with_config(config().with_resource(Resource::new(vec![
24
24
//! KeyValue::new(semconv::resource::SERVICE_NAME, "my-service"),
25
- //! KeyValue::new(semconv::resource::SERVICE_NAMESPACE, "my-namespace"),
26
25
//! ])))
27
26
//! .build();
28
27
//! ```
Original file line number Diff line number Diff line change 21
21
//! let _tracer = TracerProvider::builder()
22
22
//! .with_config(config().with_resource(Resource::new(vec![
23
23
//! KeyValue::new(semconv::resource::SERVICE_NAME, "my-service"),
24
- //! KeyValue::new(semconv::resource::SERVICE_NAMESPACE, "my-namespace"),
25
24
//! ])))
26
25
//! .build();
27
26
//! ```
You can’t perform that action at this time.
0 commit comments