We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebbecd9 commit 9a49a82Copy full SHA for 9a49a82
opentelemetry-appender-log/src/lib.rs
@@ -117,7 +117,7 @@ use opentelemetry::{
117
};
118
#[cfg(feature = "experimental_metadata_attributes")]
119
use opentelemetry_semantic_conventions::attribute::{
120
- CODE_FILEPATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
+ CODE_FILE_PATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
121
122
123
pub struct OpenTelemetryLogBridge<P, L>
@@ -156,7 +156,7 @@ where
156
{
157
if let Some(filepath) = record.file() {
158
log_record.add_attribute(
159
- Key::new(CODE_FILEPATH),
+ Key::new(CODE_FILE_PATH),
160
AnyValue::from(filepath.to_string()),
161
);
162
}
@@ -1180,7 +1180,7 @@ mod tests {
1180
#[test]
1181
fn logbridge_code_attributes() {
1182
1183
1184
1185
1186
let exporter = InMemoryLogExporter::default();
0 commit comments