ThousandEyes for OpenTelemetry Data Model v2 - Traces
Supported Test Types
Network & App Synthetics Tests
Transaction tests support only the
transactionlayer.Page load and API tests support only the
page-loadandAPIlayers, respectively.
Test type
Resource attributes
Span attributes
Page load
service.namethousandeyes.account.idthousandeyes.data.versionthousandeyes.permalinkthousandeyes.source.agent.idthousandeyes.source.agent.locationthousandeyes.source.agent.namethousandeyes.source.agent.geoname.idthousandeyes.source.agent.geo.region.iso_codethousandeyes.source.agent.geo.country.iso_codethousandeyes.stream.idthousandeyes.stream.namethousandeyes.test.domainthousandeyes.test.idthousandeyes.test.namethousandeyes.test.type
http.request.methodhttp.response.codeserver.addressserver.porturl.full
Transaction
service.namethousandeyes.account.idthousandeyes.data.versionthousandeyes.permalinkthousandeyes.source.agent.idthousandeyes.source.agent.locationthousandeyes.source.agent.namethousandeyes.source.agent.geoname.idthousandeyes.source.agent.geo.region.iso_codethousandeyes.source.agent.geo.country.iso_codethousandeyes.stream.idthousandeyes.stream.namethousandeyes.test.domainthousandeyes.test.idthousandeyes.test.namethousandeyes.test.type
http.request.methodhttp.response.codeserver.addressserver.porturl.full
API
service.namethousandeyes.account.idthousandeyes.data.versionthousandeyes.permalinkthousandeyes.source.agent.idthousandeyes.source.agent.locationthousandeyes.source.agent.namethousandeyes.source.agent.geoname.idthousandeyes.source.agent.geo.region.iso_codethousandeyes.source.agent.geo.country.iso_codethousandeyes.stream.idthousandeyes.stream.namethousandeyes.test.domainthousandeyes.test.idthousandeyes.test.namethousandeyes.test.type
http.request.methodhttp.response.codeserver.addressserver.porturl.fullstep
Attributes
The OpenTelemetry pipeline supports the following OTel attributes:
Resource Attributes
Attribute
Type
Description
service.name
String
Name of the service
thousandeyes.account.id
String
The ID of the account that the telemetry data is associated with.
thousandeyes.data.version
String
Specifies the version of the data model. Possible values:
v1v2
thousandeyes.permalink
String
ThousandEyes test permalink
thousandeyes.source.agent.id
String
Identifies the ThousandEyes agent that ran the test
thousandeyes.source.agent.location
String
Location of the ThousandEyes source agent
thousandeyes.source.agent.name
String
Name of the ThousandEyes source agent
thousandeyes.source.agent.geoname.id
String
The GeoNames ID of the ThousandEyes source agent that ran the test. For more information, see [GeoNames](https://www.geonames.org/about.html).
thousandeyes.source.agent.geo.region.iso_code
String
ISO code for the region where the source agent is located.
thousandeyes.source.agent.geo.country.iso_code
String
ISO code for the country where the source agent is located.
thousandeyes.stream.id
String
UUID of the integration used to export the data.
thousandeyes.stream.name
String
Name of the integration used to export the data. This attribute changes when you rename the integration.
thousandeyes.test.domain
String
Identifies the origin of the test data. Possible values: cea (Network & App Synthetics)
thousandeyes.test.id
String
Identifies the ThousandEyes test
thousandeyes.test.name
String
Name of the ThousandEyes test
thousandeyes.test.type
String
Identifies the type of test. Possible values: "page-load", "web-transactions", "api"
Span Attributes
Attribute
Type
Description
http.request.method
String
HTTP request method. Enum:
GETPOSTHEADPUTDELETEOPTIONSPATCHCONNECT
http.response.code
Integer
HTTP response code
server.address
String
Server address
server.port
Integer
Server port
url.full
String
Full URL of the request
step
Integer
Step ID for API tests. Identifies individual steps in multi-step API test sequences.
Span Fields
Each span has a set of fields to populate:
Field
Type
Description
trace_id
String
Trace ID representing the trace that the span is a part of
span_id
String
Span ID representing the span
parent_span_id (optional)
String
Parent span ID representing the parent span of the current span
name
String
Name of the span
kind
Enum
Kind of span. Enum:
SPAN_KIND_UNSPECIFIEDSPAN_KIND_INTERNALSPAN_KIND_SERVERSPAN_KIND_CLIENTSPAN_KIND_PRODUCERSPAN_KIND_CONSUMER
start_time_unix_nano
Integer
The start time of the span, expressed in the number of nanoseconds since the Unix epoch
end_time_unix_nano
Integer
The end time of the span, expressed in the number of nanoseconds since the Unix epoch
status
Possible values for code:
STATUS_CODE_UNSETSTATUS_CODE_OKSTATUS_CODE_ERROR
Each span has a status. Status is structurally defined by the following properties:
code: Status code. It is an enumerated StatusCode, one of the values listed below.message: (Optional) Description of the status.
For more information on the OpenTelemetry data model, see the OpenTelemetry specification.
Tags as Attributes
ThousandEyes converts tags from tests and associated Cloud and Enterprise Agents into OpenTelemetry Resource attributes. Each tag consists of a key and a corresponding value.
If a stream uses tagMatch, tagMatch selects which tests are included in the stream. It does not limit which supported tags are converted to attributes.
Tags are streamed as attributes unless the tag key is not compliant with the OpenTelemetry naming conventions for attributes or matches a ThousandEyes reserved OpenTelemetry attribute name. ThousandEyes excludes those tags from the Resource attributes.
When a tag is converted to an attribute, the tag key becomes the attribute name. Some tags might have multiple values or be shared between tests and agents. These cases are handled as follows:
Single value: If a tag key has only one value, the value is represented as
string_value.Multiple values: If there are several values for the same key, the value is represented as
array_value, with each associated value as astring_valueelement.Shared tags: If tests and Cloud or Enterprise Agents are assigned to the same tag, the unique set of values is provided as the attribute value.
For more information, see Tags and OpenTelemetry Streams.
Example
Consider the following scenario:
A stream is configured with test
1234and the following tags:branch:sfobranch:nycteam:netops
The following tags are associated with test
1234:branch:sfobranch:nycteam:netopscluster:analytics
The following tags are associated with the source agent used by test
1234:branch:sfolocation:us
The resulting attributes would be structured as follows:
Notes:
The
branch:sfotag is not added twice to theResourcebecause the key-value pair already exists in the attributes.
Last updated