Skip to content

Commit

Permalink
Modified emb.log_id to log.record.uid (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielDemarco authored Apr 9, 2024
1 parent 633a07b commit 30a44af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct LogPayloadBuilder {
Attribute(key: entry.key, value: entry.value.description)
}

finalAttributes.append(.init(key: "emb.log_id", value: log.identifier.toString))
finalAttributes.append(.init(key: "log.record.uid", value: log.identifier.toString))

return .init(timeUnixNano: String(Int(log.timestamp.nanosecondsSince1970)),
severityNumber: log.severity.number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LogPayloadBuilderTests: XCTestCase {

let payload = LogPayloadBuilder.build(log: record)

let attribute = payload.attributes.first(where: { $0.key == "emb.log_id"})
let attribute = payload.attributes.first(where: { $0.key == "log.record.uid"})
XCTAssertNotNil(attribute)
XCTAssertEqual(attribute?.value, logId.toString)
}
Expand Down

0 comments on commit 30a44af

Please sign in to comment.