Skip to content

Commit 05616aa

Browse files
author
Ignacio Bonafonte
authored
Merge pull request #259 from danielqsj/init
Display correct serviceName for zipkin Currently, ZipkinTraceExporter does not honor the serviceName which configured in ZipkinTraceExporterOptions. It always set the serviceName as Open Telemetry Exporter. This PR aims to fix it, then zipkin server can display the correct serviceName.
2 parents 1583678 + 9cf65e3 commit 05616aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Exporters/Zipkin/ZipkinTraceExporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ZipkinTraceExporter: SpanExporter {
1212

1313
public init(options: ZipkinTraceExporterOptions) {
1414
self.options = options
15-
localEndPoint = ZipkinTraceExporter.getLocalZipkinEndpoint(name: "Open Telemetry Exporter")
15+
localEndPoint = ZipkinTraceExporter.getLocalZipkinEndpoint(name: options.serviceName)
1616
}
1717

1818
public func export(spans: [SpanData]) -> SpanExporterResultCode {

0 commit comments

Comments
 (0)