> For the complete documentation index, see [llms.txt](https://docs.thousandeyes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/data-model/data-model-v2/traces/data-format.md).

# OpenTelemetry Collector Data v2 Trace Examples

## HAR Trace Example

The following example shows a page load trace:

```plaintext
{
  resource_spans {
    resource {
      attributes {
        key: "service.name"
        value {
          string_value: "www.thousandeyes.com"
        }
      }
      attributes {
        key: "thousandeyes.stream.id"
        value {
          string_value: "16fedf53-93d6-4f32-a3b6-4e3dd90ebc5d"
        }
      }
      attributes {
        key: "thousandeyes.stream.name"
        value {
          string_value: "Production traces stream"
        }
      }
      attributes {
        key: "thousandeyes.account.id"
        value {
          string_value: "28147497671170"
        }
      }
      attributes {
        key: "thousandeyes.test.domain"
        value {
          string_value: "cea"
        }
      }
      attributes {
        key: "thousandeyes.test.id"
        value {
          string_value: "468105"
        }
      }
      attributes {
        key: "thousandeyes.test.name"
        value {
          string_value: "SystemTestOpenTelemetry"
        }
      }
      attributes {
        key: "thousandeyes.test.type"
        value {
          string_value: "page-load"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.id"
        value {
          string_value: "19"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.geoname.id"
        value {
          string_value: "5391959"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.geo.region.iso_code"
        value {
          string_value: "07"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.geo.country.iso_code"
        value {
          string_value: "NL"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.name"
        value {
          string_value: "Amsterdam, Netherlands"
        }
      }
      attributes {
        key: "thousandeyes.source.agent.location"
        value {
          string_value: "Amsterdam, Netherlands"
        }
      }
      attributes {
        key: "thousandeyes.data.version"
        value {
          string_value: "v2"
        }
      }
      attributes {
        key: "thousandeyes.permalink"
        value {
          string_value: "https://app.thousandeyes.com/network-app-synthetics/views?__a=11&agentId=19&testId=468105"
        }
      }
      attributes {
        key: "custom_tag_key"
        value {
          string_value: "custom_tag_value"
        }
      }
      attributes {
        key: "branch"
        value {
          string_value: "sfo"
        }
      }
      attributes {
        key: "team"
        value {
          string_value: "netops"
        }
      }
    }
    scope_spans {
      scope {}
      spans {
        trace_id: "0c6453a0534dbd78e3c591432132ac87"
        span_id: "1111111111111111"
        name: "HTTP GET www.thousandeyes.com"
        kind: SPAN_KIND_CLIENT
        start_time_unix_nano: 1691060100000000000
        end_time_unix_nano: 1691060101350000000
        status {
          code: "STATUS_CODE_UNSET"
          message: ""
        }
        attributes {
          key: "http.request.method"
          value {
            string_value: "GET"
          }
        }
        attributes {
          key: "server.address"
          value {
            string_value: "www.thousandeyes.com"
          }
        }
        attributes {
          key: "server.port"
          value {
            int_value: 443
          }
        }
      }
      spans {
        trace_id: "0c6453a0534dbd78e3c591432132ac87"
        span_id: "50a80b26e7cd90ec"
        parent_span_id: "1111111111111111"
        name: "GET /product/end-user-monitoring"
        kind: SPAN_KIND_CLIENT
        start_time_unix_nano: 1691060100306000000
        end_time_unix_nano: 1691060101306000000
        status {
          code: "STATUS_CODE_UNSET"
          message: ""
        }
        attributes {
          key: "http.request.method"
          value {
            string_value: "GET"
          }
        }
        attributes {
          key: "url.full"
          value {
            string_value: "https://www.thousandeyes.com/product/end-user-monitoring"
          }
        }
        attributes {
          key: "http.response.code"
          value {
            int_value: 200
          }
        }
        attributes {
          key: "server.address"
          value {
            string_value: "www.thousandeyes.com"
          }
        }
        attributes {
          key: "server.port"
          value {
            int_value: 443
          }
        }
      }
      spans {
        trace_id: "0c6453a0534dbd78e3c591432132ac87"
        span_id: "90b70c26e8df45fd"
        parent_span_id: "1111111111111111"
        name: "GET /logo.png"
        kind: SPAN_KIND_CLIENT
        start_time_unix_nano: 1691060101310000000
        end_time_unix_nano: 1691060101325000000
        status {
          code: "STATUS_CODE_UNSET"
          message: ""
        }
        attributes {
          key: "http.request.method"
          value {
            string_value: "GET"
          }
        }
        attributes {
          key: "url.full"
          value {
            string_value: "https://www.thousandeyes.com/logo.png"
          }
        }
        attributes {
          key: "http.response.code"
          value {
            int_value: 200
          }
        }
        attributes {
          key: "server.address"
          value {
            string_value: "www.thousandeyes.com"
          }
        }
        attributes {
          key: "server.port"
          value {
            int_value: 443
          }
        }
      }
      spans {
        trace_id: "0c6453a0534dbd78e3c591432132ac87"
        span_id: "e7d8e9f10d4c21a7"
        parent_span_id: "1111111111111111"
        name: "HTTP GET www.thousandeyes.com"
        kind: SPAN_KIND_CLIENT
        start_time_unix_nano: 1691060101330000000
        end_time_unix_nano: 1691060101350000000
        status {
          code: "STATUS_CODE_UNSET"
          message: ""
        }
        attributes {
          key: "http.request.method"
          value {
            string_value: "GET"
          }
        }
        attributes {
          key: "url.full"
          value {
            string_value: "https://www.thousandeyes.com/app.js"
          }
        }
        attributes {
          key: "http.response.code"
          value {
            int_value: 200
          }
        }
        attributes {
          key: "server.address"
          value {
            string_value: "www.thousandeyes.com"
          }
        }
        attributes {
          key: "server.port"
          value {
            int_value: 443
          }
        }
      }
    }
  }
}
```

## Network Path Trace Example

The following example shows a single-hop path that reaches its destination. It contains a task root span, one path attempt, and a client and server span pair for the topology edge. The attempt and edge spans have equal start and end times because they are point observations. The `network.path.hop.rtt` attribute reports round-trip time (RTT) in milliseconds. Span duration does not represent RTT.

```json
{
  "resourceSpans": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": { "stringValue": "ThousandEyes Agent 42" }
          },
          {
            "key": "server.address",
            "value": { "stringValue": "www.example.com" }
          },
          {
            "key": "thousandeyes.stream.id",
            "value": { "stringValue": "123e4567-e89b-12d3-a456-426614174000" }
          },
          {
            "key": "thousandeyes.stream.name",
            "value": { "stringValue": "Production traces stream" }
          },
          {
            "key": "thousandeyes.account.id",
            "value": { "stringValue": "987654" }
          },
          {
            "key": "thousandeyes.data.version",
            "value": { "stringValue": "v2" }
          },
          {
            "key": "thousandeyes.test.domain",
            "value": { "stringValue": "cea" }
          },
          {
            "key": "thousandeyes.test.id",
            "value": { "stringValue": "246810" }
          },
          {
            "key": "thousandeyes.test.name",
            "value": { "stringValue": "Agent to server path trace" }
          },
          {
            "key": "thousandeyes.test.type",
            "value": { "stringValue": "agent-to-server" }
          },
          {
            "key": "thousandeyes.source.agent.id",
            "value": { "stringValue": "42" }
          },
          {
            "key": "thousandeyes.source.agent.name",
            "value": { "stringValue": "ThousandEyes Agent 42" }
          },
          {
            "key": "thousandeyes.source.agent.network.address",
            "value": { "stringValue": "198.51.100.10" }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "thousandeyes.network.path.model",
            "version": "1.0"
          },
          "spans": [
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "0000000000000001",
              "name": "ThousandEyes test task",
              "kind": 1,
              "startTimeUnixNano": "1767225600000000000",
              "endTimeUnixNano": "1767225604000000000"
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "0000000000000002",
              "parentSpanId": "0000000000000001",
              "name": "network path attempt observed",
              "kind": 1,
              "startTimeUnixNano": "1767225604000000000",
              "endTimeUnixNano": "1767225604000000000"
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "0000000000000003",
              "parentSpanId": "0000000000000002",
              "name": "network path edge to www.example.com",
              "kind": 3,
              "startTimeUnixNano": "1767225604000000000",
              "endTimeUnixNano": "1767225604000000000",
              "attributes": [
                {
                  "key": "network.path.hop.index",
                  "value": { "intValue": "1" }
                },
                {
                  "key": "network.path.hop.rtt",
                  "value": { "intValue": "12" }
                },
                {
                  "key": "network.local.address",
                  "value": { "stringValue": "198.51.100.10" }
                },
                {
                  "key": "network.local.prefix",
                  "value": { "stringValue": "198.51.100.0/24" }
                },
                {
                  "key": "network.peer.address",
                  "value": { "stringValue": "203.0.113.20" }
                },
                {
                  "key": "network.peer.prefix",
                  "value": { "stringValue": "203.0.113.0/24" }
                },
                {
                  "key": "network.peer.hostname",
                  "value": { "stringValue": "www.example.com" }
                },
                {
                  "key": "network.peer.as.number",
                  "value": { "intValue": "64500" }
                },
                {
                  "key": "geo.geoname.id",
                  "value": { "stringValue": "5391959" }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": { "stringValue": "www.example.com" }
          },
          {
            "key": "thousandeyes.stream.id",
            "value": { "stringValue": "123e4567-e89b-12d3-a456-426614174000" }
          },
          {
            "key": "thousandeyes.stream.name",
            "value": { "stringValue": "Production traces stream" }
          },
          {
            "key": "thousandeyes.account.id",
            "value": { "stringValue": "987654" }
          },
          {
            "key": "thousandeyes.data.version",
            "value": { "stringValue": "v2" }
          },
          {
            "key": "thousandeyes.test.domain",
            "value": { "stringValue": "cea" }
          },
          {
            "key": "thousandeyes.test.id",
            "value": { "stringValue": "246810" }
          },
          {
            "key": "thousandeyes.test.name",
            "value": { "stringValue": "Agent to server path trace" }
          },
          {
            "key": "thousandeyes.test.type",
            "value": { "stringValue": "agent-to-server" }
          },
          {
            "key": "thousandeyes.source.agent.id",
            "value": { "stringValue": "42" }
          },
          {
            "key": "thousandeyes.source.agent.name",
            "value": { "stringValue": "ThousandEyes Agent 42" }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "thousandeyes.network.path.model",
            "version": "1.0"
          },
          "spans": [
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "0000000000000004",
              "parentSpanId": "0000000000000003",
              "name": "network path edge from ThousandEyes Agent 42",
              "kind": 2,
              "startTimeUnixNano": "1767225604000000000",
              "endTimeUnixNano": "1767225604000000000",
              "attributes": [
                {
                  "key": "network.path.hop.index",
                  "value": { "intValue": "1" }
                },
                {
                  "key": "network.path.hop.rtt",
                  "value": { "intValue": "12" }
                },
                {
                  "key": "network.local.address",
                  "value": { "stringValue": "203.0.113.20" }
                },
                {
                  "key": "network.local.prefix",
                  "value": { "stringValue": "203.0.113.0/24" }
                },
                {
                  "key": "network.local.hostname",
                  "value": { "stringValue": "www.example.com" }
                },
                {
                  "key": "network.peer.address",
                  "value": { "stringValue": "198.51.100.10" }
                },
                {
                  "key": "network.peer.prefix",
                  "value": { "stringValue": "198.51.100.0/24" }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
```
