File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed
opentelemetry-semantic-conventions Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ docker run --rm \
43
43
--parameters conventions=resource
44
44
45
45
# Keep `SCHEMA_URL` key in sync with spec version
46
- sed -i ' ' " s/\(opentelemetry.io\/schemas\/\)[^\" ]*\" /\1$SPEC_VERSION \" /" src/lib.rs
46
+ sed -i " s/\(opentelemetry.io\/schemas\/\)[^\" ]*\" /\1$SPEC_VERSION \" /" src/lib.rs
47
+
48
+ # handle doc generation failures
49
+ sed -i ' s/\[2\]\.$//' src/resource.rs # remove trailing [2] from few of the doc comments
47
50
48
51
cargo fmt
Original file line number Diff line number Diff line change 3
3
//! The [resource semantic conventions] define a set of standardized attributes
4
4
//! to be used in `Resource`s.
5
5
//!
6
- //! [resource semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification /tree/master/specification /resource/semantic_conventions
6
+ //! [resource semantic conventions]: https://github.com/open-telemetry/semantic-conventions /tree/main/model /resource
7
7
//!
8
8
//! ## Usage
9
9
//!
10
10
//! ```
11
- //! use opentelemetry::sdk ;
11
+ //! use opentelemetry_sdk::{trace::{config, TracerProvider}, Resource} ;
12
12
//! use opentelemetry_semantic_conventions as semconv;
13
13
//!
14
- //! let _tracer = sdk::trace:: TracerProvider::builder()
15
- //! .with_config(sdk::trace:: config().with_resource(sdk:: Resource::new(vec![
14
+ //! let _tracer = TracerProvider::builder()
15
+ //! .with_config(config().with_resource(Resource::new(vec![
16
16
//! semconv::resource::SERVICE_NAME.string("my-service"),
17
17
//! semconv::resource::SERVICE_NAMESPACE.string("my-namespace"),
18
18
//! ])))
Original file line number Diff line number Diff line change 3
3
//! The [trace semantic conventions] define a set of standardized attributes to
4
4
//! be used in `Span`s.
5
5
//!
6
- //! [trace semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification /tree/master/specification /trace/semantic_conventions
6
+ //! [trace semantic conventions]: https://github.com/open-telemetry/semantic-conventions /tree/main/model /trace
7
7
//!
8
8
//! ## Usage
9
9
//!
Original file line number Diff line number Diff line change 9
9
//! The [resource semantic conventions] define a set of standardized attributes
10
10
//! to be used in `Resource`s.
11
11
//!
12
- //! [resource semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification /tree/master/specification /resource/semantic_conventions
12
+ //! [resource semantic conventions]: https://github.com/open-telemetry/semantic-conventions /tree/main/model /resource
13
13
//!
14
14
//! ## Usage
15
15
//!
@@ -99,7 +99,7 @@ pub const CLOUD_REGION: Key = Key::from_static_str("cloud.region");
99
99
/// * **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
100
100
/// Take care not to use the "invoked ARN" directly but replace any
101
101
/// [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html)
102
- /// with the resolved function version, as the same runtime instance may be invocable with
102
+ /// with the resolved function version, as the same runtime instance may be invokable with
103
103
/// multiple different aliases.
104
104
/// * **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)
105
105
/// * **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id) of the invoked function,
Original file line number Diff line number Diff line change 9
9
//! The [trace semantic conventions] define a set of standardized attributes to
10
10
//! be used in `Span`s.
11
11
//!
12
- //! [trace semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification /tree/master/specification /trace/semantic_conventions
12
+ //! [trace semantic conventions]: https://github.com/open-telemetry/semantic-conventions /tree/main/model /trace
13
13
//!
14
14
//! ## Usage
15
15
//!
You can’t perform that action at this time.
0 commit comments