diff --git a/Sources/EmbraceCore/Payload/Builders/LogPayloadBuilder.swift b/Sources/EmbraceCore/Payload/Builders/LogPayloadBuilder.swift index fb17544e..7bd10ab6 100644 --- a/Sources/EmbraceCore/Payload/Builders/LogPayloadBuilder.swift +++ b/Sources/EmbraceCore/Payload/Builders/LogPayloadBuilder.swift @@ -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, diff --git a/Tests/EmbraceCoreTests/Payload/LogPayloadBuilderTests.swift b/Tests/EmbraceCoreTests/Payload/LogPayloadBuilderTests.swift index 3a42dfd9..b837fc67 100644 --- a/Tests/EmbraceCoreTests/Payload/LogPayloadBuilderTests.swift +++ b/Tests/EmbraceCoreTests/Payload/LogPayloadBuilderTests.swift @@ -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) }