Skip to content

Commit 0164dde

Browse files
committed
changed the comment to reflect another span
1 parent 2dfcd58 commit 0164dde

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Examples/OTLP Exporter/main.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if #available(macOS 10.14, *) {
4444
OpenTelemetrySDK.instance.tracerProvider.addSpanProcessor(SignPostIntegration())
4545
}
4646

47-
func createSpan() {
47+
func createSpans() {
4848
let parentSpan1 = tracer.spanBuilder(spanName: "Main").setSpanKind(spanKind: .client).startSpan()
4949
parentSpan1.setAttribute(key: sampleKey, value: sampleValue)
5050
for _ in 1...3 {
@@ -71,9 +71,8 @@ func doWork(parentSpan: Span) {
7171
childSpan.end()
7272
}
7373

74-
// Create a Parent span (Main) and do some Work (child Spans)
75-
createSpan()
76-
74+
// Create a Parent span (Main) and do some Work (child Spans). Repeat for another Span.
75+
createSpans()
7776

7877
//Metrics
7978
let otlpMetricExporter = OtlpMetricExporter(channel: client)

0 commit comments

Comments
 (0)