@grow-codes/zipkin - v0.1.1
    Preparing search index...

    Function toZipkinSpan

    • Maps a finished OpenTelemetry span to a Zipkin v2 span (identical in every language of this SDK; based on the OpenTelemetry Zipkin exporter specification):

      Zipkin OpenTelemetry
      traceId, id span context ids (lower-case hex, 32 / 16)
      parentId parent span id when valid, else omitted
      kind SERVER/CLIENT/PRODUCER/CONSUMER 1:1; INTERNAL → omitted
      name span name (the server lower-cases it)
      timestamp start time, epoch µs (truncated)
      duration end − start in µs, rounded, at least 1
      localEndpoint.serviceName resource service.name, else unknown_service
      remoteEndpoint 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.

      Parameters

      Returns ZipkinSpan