Skip to content

Commit 680f91d

Browse files
authored
docs: update semantic-conventions link (#52)
## Motivation * Update semantic-conventions repository link to newly created one. * Update the renamed attribute used in the example * `http.url` -> `url.full` * [CHANGELOG](https://github.com/open-telemetry/semantic-conventions/blob/3bd1c39e5f6aae7ea942c50bd771fa2e7e408249/CHANGELOG.md?plain=1#L106)
1 parent fee6cbf commit 680f91d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/layer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ where
490490
///
491491
/// By default, these attributes are not recorded.
492492
///
493-
/// [conv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/exceptions/
493+
/// [conv]: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/exceptions/
494494
pub fn with_exception_fields(self, exception_fields: bool) -> Self {
495495
Self {
496496
exception_config: ExceptionFieldConfig {
@@ -513,7 +513,7 @@ where
513513
///
514514
/// By default, these attributes are not propagated to the span.
515515
///
516-
/// [conv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/exceptions/
516+
/// [conv]: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/exceptions/
517517
pub fn with_exception_field_propagation(self, exception_field_propagation: bool) -> Self {
518518
Self {
519519
exception_config: ExceptionFieldConfig {
@@ -532,7 +532,7 @@ where
532532
///
533533
/// By default, locations are enabled.
534534
///
535-
/// [conv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/span-general/#source-code-attributes
535+
/// [conv]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes/
536536
pub fn with_location(self, location: bool) -> Self {
537537
Self { location, ..self }
538538
}
@@ -545,7 +545,7 @@ where
545545
///
546546
/// By default, locations are enabled.
547547
///
548-
/// [conv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/span-general/#source-code-attributes
548+
/// [conv]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes/
549549
#[deprecated(
550550
since = "0.17.3",
551551
note = "renamed to `OpenTelemetrySubscriber::with_location`"
@@ -573,7 +573,7 @@ where
573573
///
574574
/// By default, thread attributes are enabled.
575575
///
576-
/// [conv]: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/span-general/#general-thread-attributes
576+
/// [conv]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#general-thread-attributes/
577577
pub fn with_threads(self, threads: bool) -> Self {
578578
Self {
579579
with_threads: threads,

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
//!
3434
//! OpenTelemetry defines conventional names for attributes of common
3535
//! operations. These names can be assigned directly as fields, e.g.
36-
//! `trace_span!("request", "otel.kind" = %SpanKind::Client, "http.url" = ..)`, and they
36+
//! `trace_span!("request", "otel.kind" = %SpanKind::Client, "url.full" = ..)`, and they
3737
//! will be passed through to your configured OpenTelemetry exporter. You can
3838
//! find the full list of the operations and their expected field names in the
3939
//! [semantic conventions] spec.
4040
//!
41-
//! [semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/trace/semantic_conventions
41+
//! [semantic conventions]: https://github.com/open-telemetry/semantic-conventions
4242
//!
4343
//! ### Stability Status
4444
//!

0 commit comments

Comments
 (0)