Skip to content

Commit

Permalink
fix ordermap usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed May 23, 2023
1 parent e9adef6 commit ecd5397
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions opentelemetry-api/src/logs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ pub use logger::{Logger, LoggerProvider};
pub use noop::NoopLoggerProvider;
pub use record::{AnyValue, LogRecord, LogRecordBuilder, Severity, TraceContext};

use std::collections::hash_map::RandomState;


/// Describe the result of operations in log SDK.
pub type LogResult<T> = Result<T, LogError>;

/// re-export OrderMap to mitigate breaking change
pub type OrderMap<K, V, S = RandomState> = crate::order_map::OrderMap<K, V, S>;

#[derive(Error, Debug)]
#[non_exhaustive]
/// Errors returned by the log SDK.
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-api/src/logs/record.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{
trace::{OrderMap, SpanContext, SpanId, TraceContextExt, TraceFlags, TraceId},
Array, Key, StringValue, Value,
trace::{SpanContext, SpanId, TraceContextExt, TraceFlags, TraceId},
Array, Key, OrderMap, StringValue, Value,
};
use std::{borrow::Cow, time::SystemTime};

Expand Down

0 comments on commit ecd5397

Please sign in to comment.