Skip to content

Commit

Permalink
fix deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Dec 10, 2024
1 parent e9ec1ac commit 7670cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-datadog/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl DatadogPipelineBuilder {
let (config, service_name) = self.build_config_and_service_name();
let exporter = self.build_exporter_with_service_name(service_name)?;
let mut provider_builder = TracerProvider::builder().with_simple_exporter(exporter);
provider_builder = provider_builder.with_config(config);
provider_builder = provider_builder.with_resource(config.resource.into_owned());
let provider = provider_builder.build();
let scope = InstrumentationScope::builder("opentelemetry-datadog")
.with_version(env!("CARGO_PKG_VERSION"))
Expand All @@ -305,7 +305,7 @@ impl DatadogPipelineBuilder {
let (config, service_name) = self.build_config_and_service_name();
let exporter = self.build_exporter_with_service_name(service_name)?;
let mut provider_builder = TracerProvider::builder().with_batch_exporter(exporter, runtime);
provider_builder = provider_builder.with_config(config);
provider_builder = provider_builder.with_resource(config.resource.into_owned());
let provider = provider_builder.build();
let scope = InstrumentationScope::builder("opentelemetry-datadog")
.with_version(env!("CARGO_PKG_VERSION"))
Expand Down

0 comments on commit 7670cfb

Please sign in to comment.