Skip to content

Commit c020eec

Browse files
committed
resource: fix doc references to no longer pub items
1 parent cecd572 commit c020eec

File tree

1 file changed

+3
-3
lines changed
  • opentelemetry-sdk/src/resource

1 file changed

+3
-3
lines changed

opentelemetry-sdk/src/resource/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct Resource {
5252
}
5353

5454
impl Resource {
55-
/// Creates a [ResourceBuilder] Starting from [Resource::default()] that allows you to configure multiple aspects of the Resource.
55+
/// Creates a [ResourceBuilder] that allows you to configure multiple aspects of the Resource.
5656
///
5757
/// This [ResourceBuilder] will always include the following [ResourceDetector]s:
5858
/// - [SdkProvidedResourceDetector]
@@ -68,7 +68,7 @@ impl Resource {
6868
}
6969
}
7070

71-
/// Creates a [ResourceBuilder] starting from [Resource::empty()] that allows you to configure multiple aspects of the Resource.
71+
/// Creates a [ResourceBuilder] that allows you to configure multiple aspects of the Resource.
7272
///
7373
/// This [ResourceBuilder] will not include any attributes or [ResourceDetector]s by default.
7474
pub fn builder_empty() -> ResourceBuilder {
@@ -256,7 +256,7 @@ impl<'a> IntoIterator for &'a Resource {
256256
/// ResourceDetector detects OpenTelemetry resource information
257257
///
258258
/// Implementations of this trait can be passed to
259-
/// the [`Resource::from_detectors`] function to generate a Resource from the merged information.
259+
/// the [`ResourceBuilder::with_detectors`] function to generate a Resource from the merged information.
260260
pub trait ResourceDetector {
261261
/// detect returns an initialized Resource based on gathered information.
262262
///

0 commit comments

Comments
 (0)