We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3661c commit 01a63c4Copy full SHA for 01a63c4
opentelemetry-sdk/src/resource/builder.rs
@@ -1,4 +1,4 @@
1
-use std::{borrow::Cow, time::Duration};
+use std::borrow::Cow;
2
3
use opentelemetry::{KeyValue, Value};
4
@@ -39,9 +39,7 @@ impl ResourceBuilder {
39
40
/// Add multiple [ResourceDetector] to your resource.
41
pub fn with_detectors(mut self, detectors: Vec<Box<dyn ResourceDetector>>) -> Self {
42
- self.resource = self
43
- .resource
44
- .merge(&Resource::from_detectors(Duration::from_secs(0), detectors));
+ self.resource = self.resource.merge(&Resource::from_detectors(detectors));
45
self
46
}
47
0 commit comments