Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Dec 16, 2024
1 parent c27ebcc commit faa760f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opentelemetry-user-events-logs/src/logs/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use eventheader_dynamic::EventBuilder;
use std::borrow::Cow;
use std::collections::HashMap;
use std::fmt::Debug;
use std::sync::Arc;

use opentelemetry::{logs::AnyValue, logs::Severity, Key};
use std::{cell::RefCell, str, time::SystemTime};
Expand Down Expand Up @@ -49,7 +48,7 @@ impl ExporterConfig {

/// UserEventsExporter is a log exporter that exports logs in EventHeader format to user_events tracepoint.
pub struct UserEventsExporter {
provider: Arc<eventheader_dynamic::Provider>,
provider: eventheader_dynamic::Provider,
exporter_config: ExporterConfig,
}

Expand All @@ -70,7 +69,7 @@ impl UserEventsExporter {
eventheader_dynamic::Provider::new(provider_name, &options);
Self::register_keywords(&mut eventheader_provider, &exporter_config);
UserEventsExporter {
provider: Arc::new(eventheader_provider),
provider: eventheader_provider,

Check warning on line 72 in opentelemetry-user-events-logs/src/logs/exporter.rs

View check run for this annotation

Codecov / codecov/patch

opentelemetry-user-events-logs/src/logs/exporter.rs#L72

Added line #L72 was not covered by tests
exporter_config,
}
}
Expand Down

0 comments on commit faa760f

Please sign in to comment.