Skip to content

Commit

Permalink
feat: add test for with_service_name
Browse files Browse the repository at this point in the history
  • Loading branch information
pitoniak32 committed Dec 1, 2024
1 parent cc52beb commit 9fca93a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opentelemetry-sdk/src/resource/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ mod tests {
|| {
let resource = Resource::builder()
.with_detector(Box::new(EnvResourceDetector::new()))
.with_service_name("my_test_service_name")
.with_key_value(KeyValue::new("test1", "test_value"))
.with_key_values(vec![
KeyValue::new("test1", "test_value1"),
Expand All @@ -97,6 +98,7 @@ mod tests {
resource,
Resource::new(vec![
KeyValue::new("key", "value"),
KeyValue::new(SERVICE_NAME, "my_test_service_name"),
KeyValue::new("test1", "test_value1"),
KeyValue::new("test2", "test_value2"),
KeyValue::new("k", "v"),
Expand Down

0 comments on commit 9fca93a

Please sign in to comment.