OpenTelemetry Collector Data v2 Traces Example
Here is an example of a trace with three spans:
{
resource_spans {
resource {
attributes {
key: "meta.signal_type"
value {
string_value: "trace"
}
}
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.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.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/view/tests?__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
}
}
}
}
}
}
PreviousThousandEyes for OpenTelemetry Data Model v2 - TracesNextOpenTelemetry Collector Configuration
Last updated