Skip to content

Commit b8e4975

Browse files
committed
formatting
1 parent 1803401 commit b8e4975

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

Sources/Tracing/Tracer.swift

+34-8
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,15 @@ extension Tracer {
7070
file fileID: String = #fileID,
7171
line: UInt = #line
7272
) -> Span {
73-
self.startSpan(operationName, baggage: baggage, ofKind: kind, at: .now(),
74-
function: function, file: fileID, line: line)
73+
self.startSpan(
74+
operationName,
75+
baggage: baggage,
76+
ofKind: kind,
77+
at: .now(),
78+
function: function,
79+
file: fileID,
80+
line: line
81+
)
7582
}
7683
}
7784

@@ -102,8 +109,15 @@ extension Tracer {
102109
line: UInt = #line,
103110
_ operation: (Span) throws -> T
104111
) rethrows -> T {
105-
let span = self.startSpan(operationName, baggage: baggage, ofKind: kind, at: .now(),
106-
function: function, file: fileID, line: line)
112+
let span = self.startSpan(
113+
operationName,
114+
baggage: baggage,
115+
ofKind: kind,
116+
at: .now(),
117+
function: function,
118+
file: fileID,
119+
line: line
120+
)
107121
defer { span.end() }
108122
do {
109123
return try operation(span)
@@ -142,8 +156,14 @@ extension Tracer {
142156
line: UInt = #line,
143157
_ operation: (Span) throws -> T
144158
) rethrows -> T {
145-
try self.withSpan(operationName, baggage: .current ?? .topLevel, ofKind: kind,
146-
function: function, file: fileID, line: line) { span in
159+
try self.withSpan(
160+
operationName,
161+
baggage: .current ?? .topLevel,
162+
ofKind: kind,
163+
function: function,
164+
file: fileID,
165+
line: line
166+
) { span in
147167
try Baggage.$current.withValue(span.baggage) {
148168
try operation(span)
149169
}
@@ -172,8 +192,14 @@ extension Tracer {
172192
line: UInt = #line,
173193
_ operation: (Span) async throws -> T
174194
) async rethrows -> T {
175-
let span = self.startSpan(operationName, baggage: .current ?? .topLevel, ofKind: kind,
176-
function: function, file: fileID, line: line)
195+
let span = self.startSpan(
196+
operationName,
197+
baggage: .current ?? .topLevel,
198+
ofKind: kind,
199+
function: function,
200+
file: fileID,
201+
line: line
202+
)
177203
defer { span.end() }
178204
do {
179205
return try await Baggage.$current.withValue(span.baggage) {

0 commit comments

Comments
 (0)