Maps a finished OpenTelemetry span to a Zipkin v2 span (identical in every language of this
SDK; based on the OpenTelemetry Zipkin exporter specification):
CLIENT/PRODUCER only: {serviceName} = first non-empty string of peer.service, server.address, net.peer.name, network.peer.address; omitted when none is set
tags
span attributes (strings as-is, numbers/booleans String(v), arrays JSON); then otel.scope.name / otel.scope.version; otel.dropped_attributes_count / otel.dropped_events_count when > 0; status ERROR → otel.status_code=ERROR + error=<message or "">, OK → otel.status_code=OK (status tags win). Resource attributes are not copied
annotations
events: timestamp = event time µs, value = event name, or the JSON text {"<name>":{…attributes}} (attribute values keep their JSON type) when the event has attributes
debug, shared
never set
Links, trace state and resource attributes other than service.name are not mapped.
Maps a finished OpenTelemetry span to a Zipkin v2 span (identical in every language of this SDK; based on the OpenTelemetry Zipkin exporter specification):
traceId,idparentIdkindnametimestampdurationlocalEndpoint.serviceNameservice.name, elseunknown_serviceremoteEndpoint{serviceName}= first non-empty string ofpeer.service,server.address,net.peer.name,network.peer.address; omitted when none is settagsString(v), arrays JSON); thenotel.scope.name/otel.scope.version;otel.dropped_attributes_count/otel.dropped_events_countwhen > 0; status ERROR →otel.status_code=ERROR+error=<message or "">, OK →otel.status_code=OK(status tags win). Resource attributes are not copiedannotationstimestamp= event time µs,value= event name, or the JSON text{"<name>":{…attributes}}(attribute values keep their JSON type) when the event has attributesdebug,sharedLinks, trace state and resource attributes other than
service.nameare not mapped.