You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
export ToZipkinSpanModels for use outside this library (#2027)
* export ToZipkinSpanModels for use outside this library * Update CHANGELOG.md
This commit is contained in:
@@ -51,7 +51,9 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
func toZipkinSpanModels(batch []tracesdk.ReadOnlySpan) []zkmodel.SpanModel {
|
||||
// SpanModels converts OpenTelemetry spans into Zipkin model spans.
|
||||
// This is used for exporting to Zipkin compatible tracing services.
|
||||
func SpanModels(batch []tracesdk.ReadOnlySpan) []zkmodel.SpanModel {
|
||||
models := make([]zkmodel.SpanModel, 0, len(batch))
|
||||
for _, data := range batch {
|
||||
models = append(models, toZipkinSpanModel(data))
|
||||
|
||||
Reference in New Issue
Block a user