Skip to content

Commit 723feb9

Browse files
committed
resource: remove new_with_defaults fn from pub api
1 parent 473528c commit 723feb9

File tree

1 file changed

+0
-8
lines changed
  • opentelemetry-sdk/src/resource

1 file changed

+0
-8
lines changed

opentelemetry-sdk/src/resource/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ impl Resource {
112112
}
113113
}
114114

115-
/// Create a new `Resource::default()` and merge with provided key value pairs.
116-
///
117-
/// Values are de-duplicated by key, and the first key-value pair with a non-empty string value
118-
/// will be retained
119-
pub fn new_with_defaults<T: IntoIterator<Item = KeyValue>>(keys: T) -> Self {
120-
Resource::builder().with_attributes(keys).build()
121-
}
122-
123115
/// Create a new `Resource` from a key value pairs and [schema url].
124116
///
125117
/// Values are de-duplicated by key, and the first key-value pair with a non-empty string value

0 commit comments

Comments
 (0)