Skip to content

Commit f368554

Browse files
committed
Whitespace and formatting cleanup
Signed-off-by: Kevin Earls <[email protected]>
1 parent 1780c32 commit f368554

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

Sources/Exporters/OpenTelemetryProtocol/common/OtlpHttpExporterBase.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ public class OtlpHttpExporterBase {
3333
return request
3434
}
3535

36-
3736
public func shutdown() {
3837
}
39-
4038
}

Sources/Exporters/OpenTelemetryProtocol/logs/OtlpHttpLogExporter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class OtlpHttpLogExporter : OtlpHttpExporterBase, LogRecordExporter {
4646
exporterResult = ExportResult.failure
4747
}
4848
}
49+
4950
return exporterResult
5051
}
5152
}

Tests/ExportersTests/OpenTelemetryProtocol/OtlpHttpLogRecordExporterTests.swift

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ class OtlpHttpLogRecordExporterTests: XCTestCase {
3535
func testExport() {
3636
let testBody = "Hello world " + String(Int.random(in: 1...100))
3737
let logRecord = ReadableLogRecord(resource: Resource(),
38-
instrumentationScopeInfo: InstrumentationScopeInfo(name: "scope"),
39-
timestamp: Date(),
40-
observedTimestamp: Date.distantPast,
41-
42-
spanContext: spanContext,
43-
severity: .fatal,
44-
body: testBody,
45-
attributes: ["event.name":AttributeValue.string("name"), "event.domain": AttributeValue.string("domain")])
38+
instrumentationScopeInfo: InstrumentationScopeInfo(name: "scope"),
39+
timestamp: Date(),
40+
observedTimestamp: Date.distantPast,
41+
spanContext: spanContext,
42+
severity: .fatal,
43+
body: testBody,
44+
attributes: ["event.name":AttributeValue.string("name"), "event.domain": AttributeValue.string("domain")])
4645

4746
let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
4847
let exporter = OtlpHttpLogExporter(endpoint: endpoint)
@@ -58,7 +57,5 @@ class OtlpHttpLogRecordExporterTests: XCTestCase {
5857
})
5958

6059
XCTAssertNoThrow(try testServer.receiveEnd())
61-
62-
exporter.shutdown()
6360
}
6461
}

0 commit comments

Comments
 (0)