Skip to content

Commit 49b481e

Browse files
authored
chore: Release userevents log exporter (#394)
1 parent 916b14c commit 49b481e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

opentelemetry-user-events-logs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## vNext
44

5+
## v0.14.0
6+
7+
Released 2025-July-24
8+
59
- Added a `with_resource_attributes` method to the processor builder, allowing
610
users to specify which resource attribute keys are exported with each log
711
record.

opentelemetry-user-events-logs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "opentelemetry-user-events-logs"
33
description = "OpenTelemetry Logs Exporter for Linux user_events"
4-
version = "0.13.0"
4+
version = "0.14.0"
55
edition = "2021"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-user-events-logs"
77
repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-user-events-logs"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,10 @@ where
474474
} else if self.resource_attribute_keys.contains(key.as_str()) {
475475
self.attributes_from_resource
476476
.push((key.clone(), val_to_any_value(value)));
477+
} else {
478+
// Other attributes are ignored
479+
otel_debug!(name: "UserEvents.ResourceAttributeIgnored", key = key.as_str(), message = "To include this attribute, add it via with_resource_attributes() method in the processor builder.");
477480
}
478-
// Other attributes are ignored
479481
}
480482
}
481483
}

0 commit comments

Comments
 (0)