Skip to content

Commit 9a49a82

Browse files
committed
fix deprecated error
1 parent ebbecd9 commit 9a49a82

File tree

1 file changed

+3
-3
lines changed
  • opentelemetry-appender-log/src

1 file changed

+3
-3
lines changed

opentelemetry-appender-log/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ use opentelemetry::{
117117
};
118118
#[cfg(feature = "experimental_metadata_attributes")]
119119
use opentelemetry_semantic_conventions::attribute::{
120-
CODE_FILEPATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
120+
CODE_FILE_PATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
121121
};
122122

123123
pub struct OpenTelemetryLogBridge<P, L>
@@ -156,7 +156,7 @@ where
156156
{
157157
if let Some(filepath) = record.file() {
158158
log_record.add_attribute(
159-
Key::new(CODE_FILEPATH),
159+
Key::new(CODE_FILE_PATH),
160160
AnyValue::from(filepath.to_string()),
161161
);
162162
}
@@ -1180,7 +1180,7 @@ mod tests {
11801180
#[test]
11811181
fn logbridge_code_attributes() {
11821182
use opentelemetry_semantic_conventions::attribute::{
1183-
CODE_FILEPATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
1183+
CODE_FILE_PATH, CODE_LINE_NUMBER, CODE_NAMESPACE,
11841184
};
11851185

11861186
let exporter = InMemoryLogExporter::default();

0 commit comments

Comments
 (0)