Skip to content
Novus Examples
json7.6 KB

Zipkin v2 JSON Trace — Same 13-Span Checkout (json)

The checkout trace as a flat Zipkin v2 span list with localEndpoint, string-only tags and annotations. Two conversions are deliberately visible: Zipkin has no INTERNAL kind, so those two spans omit kind, and every typed attribute is stringified.

Preview — first 50 linesjson
[
  {
    "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
    "id": "00f067aa0ba902b7",
    "name": "post /api/checkout",
    "timestamp": 1773738872850000,
    "duration": 148200,
    "localEndpoint": {
      "serviceName": "checkout-api",
      "ipv4": "192.0.2.11"
    },
    "tags": {
      "http.request.method": "POST",
      "url.path": "/api/checkout",
      "url.scheme": "https",
      "http.response.status_code": "201",
      "http.route": "/api/checkout",
      "server.address": "shop.example.com",
      "client.address": "203.0.113.42",
      "user_agent.original": "shop-mobile/4.2.0 (iOS 18.3)",
      "enduser.id": "cust-000418",
      "shop.order.id": "ord-2026-0317-004182",
      "shop.cart.items": "3",
      "shop.order.total_minor": "8497",
      "shop.currency": "EUR"
    },
    "kind": "SERVER",
    "annotations": [
      {
        "timestamp": 1773738872851200,
        "value": "request.body.parsed"
      }
    ]
  },
  {
    "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
    "id": "1a2b3c4d5e6f7081",
    "name": "auth.verify_token",
    "timestamp": 1773738872850900,
    "duration": 4100,
    "localEndpoint": {
      "serviceName": "checkout-api",
      "ipv4": "192.0.2.11"
    },
    "tags": {
      "auth.mechanism": "jwt",
      "auth.token.kid": "k-2026-03",
      "auth.cache.hit": "true"
    },
    "parentId": "00f067aa0ba902b7"
283 lines total — download for the full file.

Specifications

Shape
Zipkin v2 span list
Spans
13
Time Unit
microseconds
Kind Omitted For Internal
true
Tag Values
strings only
Trace Id
4bf92f3577b34da6a3ce929d0e0e4736

Testing contract

Reference control
Scenario
Convert the OTLP twin to Zipkin v2 and compare span-by-span against this file.
Expected result
11 spans carry a kind and the two INTERNAL spans omit it; every tag value is a string, including the booleans and integers typed in the OTLP source.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“Zipkin v2 JSON Trace — Same 13-Span Checkout (json)” is a deterministic Novus Examples fixture for Observability, JSON parsing, Conversion testing. Structured and plain-text telemetry with known timestamps, levels, request identifiers, and error states for testing log ingestion, correlation, dashboards, and alert pipelines.

Documented properties for this file: JSON · 7,755 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Telemetry fixtures use fixed trace IDs, span IDs, and timestamps so ingestion is reproducible run to run. Point your collector, parser, or query layer at the file and assert the documented span tree, metric families, or severity mix; service and host names are invented.

Code examples

import json

with open("zipkin-v2-trace-checkout.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/observability.py. Free for any use, no attribution required — license.