Skip to main content

traces_spans

Creates, updates, deletes, gets or lists a traces_spans resource.

Overview

Nametraces_spans
TypeResource
Idsumologic.tracing.traces_spans

Fields

The following fields are returned by SELECT queries:

Details of the span with the given identifier.

NameDatatypeDescription
idstringIdentifier of the span. (example: 00000000002317A9)
criticalPathContributionobject
durationinteger (int64)Number of nanoseconds the span lasted.
errorMessagestringProduced error message (could be a stack trace, database error code, ..) (example: Exception in thread "local[9]" java.lang.OutOfMemoryError: Java heap space
at my.app.force.fields.SpaceShipForceField.main(SpaceShipForceField.java:17)
)
eventsarrayEvents attached to this span.
fieldsobjectFields attached to this span.
infoobject
kindstringSpan kind describes the relationship between the Span, its parents, and its children in a Trace. Possible values: CLIENT, SERVER, PRODUCER, CONSUMER, INTERNAL. (pattern: ^(CLIENT|SERVER|PRODUCER|CONSUMER|INTERNAL)$, example: SERVER, x-pattern-message: Should be either CLIENT, SERVER, PRODUCER, CONSUMER or INTERNAL.)
linksarrayList of casually related spans.
logsarrayLogs attached to this span.
numberOfLinksinteger (int32)Number of span links in this span.
operationNamestringThe name of the operation given to the span. (example: retrieveAccount)
parentIdstringIdentifier of the parent span, if any. If the span has no parent it's considered a root span. (example: 000000000003C7BE)
remoteServicestringName of the possible remote span's service. (example: external-service)
remoteServiceColorstringColor hex code assigned to the remote service. (example: #fa41c6)
remoteServiceTypestringDefines type of service. (pattern: ^(Db|HTTP|MQ|Web|Mixed|Unknown|Cpp|DotNET|Erlang|Go|Java|NodeJS|Php|Python|Ruby|WebJS|Swift|MSSQL|MySQL|Oracle|Db2|PostgreSQL|Redshift|Hive|Cloudscape|HSQLDB|Progress|MaxDB|HANADB|Ingres|FirstSQL|EnterpriseDB|Cache|Adabas|Firebird|ApacheDerby|FileMaker|Informix|InstantDB|InterBase|MariaDB|Netezza|PervasivePSQL|PointBase|SQLite|Sybase|Teradata|Vertica|H2|ColdFusion|Cassandra|HBase|MongoDB|Redis|Couchbase|CouchDB|CosmosDB|DynamoDB|Neo4j|Geode|Elasticsearch|Memcached|CockroachDB)$, example: HTTP, x-pattern-message: Should be either Db, HTTP, MQ, Web, Mixed, Unknown, Cpp, DotNET, Erlang, Go, Java, NodeJS, Php, Python, Ruby, WebJS, Swift, MSSQL, MySQL, Oracle, Db2, PostgreSQL, Redshift, Hive, Cloudscape, HSQLDB, Progress, MaxDB, HANADB, Ingres, FirstSQL, EnterpriseDB, Cache, Adabas, Firebird, ApacheDerby, FileMaker, Informix, InstantDB, InterBase, MariaDB, Netezza, PervasivePSQL, PointBase, SQLite, Sybase, Teradata, Vertica, H2, ColdFusion, Cassandra, HBase, MongoDB, Redis, Couchbase, CouchDB, CosmosDB, DynamoDB, Neo4j, Geode, Elasticsearch, Memcached or CockroachDB)
resourcestringThe name of the resource attached to the span. (example: http.request)
servicestringThe name of the service this span is part of. (example: user-service)
serviceColorstringColor hex code assigned to the service. (example: #fa41c6)
serviceTypestringDefines type of service. (pattern: ^(Db|HTTP|MQ|Web|Mixed|Unknown|Cpp|DotNET|Erlang|Go|Java|NodeJS|Php|Python|Ruby|WebJS|Swift|MSSQL|MySQL|Oracle|Db2|PostgreSQL|Redshift|Hive|Cloudscape|HSQLDB|Progress|MaxDB|HANADB|Ingres|FirstSQL|EnterpriseDB|Cache|Adabas|Firebird|ApacheDerby|FileMaker|Informix|InstantDB|InterBase|MariaDB|Netezza|PervasivePSQL|PointBase|SQLite|Sybase|Teradata|Vertica|H2|ColdFusion|Cassandra|HBase|MongoDB|Redis|Couchbase|CouchDB|CosmosDB|DynamoDB|Neo4j|Geode|Elasticsearch|Memcached|CockroachDB)$, example: HTTP, x-pattern-message: Should be either Db, HTTP, MQ, Web, Mixed, Unknown, Cpp, DotNET, Erlang, Go, Java, NodeJS, Php, Python, Ruby, WebJS, Swift, MSSQL, MySQL, Oracle, Db2, PostgreSQL, Redshift, Hive, Cloudscape, HSQLDB, Progress, MaxDB, HANADB, Ingres, FirstSQL, EnterpriseDB, Cache, Adabas, Firebird, ApacheDerby, FileMaker, Informix, InstantDB, InterBase, MariaDB, Netezza, PervasivePSQL, PointBase, SQLite, Sybase, Teradata, Vertica, H2, ColdFusion, Cassandra, HBase, MongoDB, Redis, Couchbase, CouchDB, CosmosDB, DynamoDB, Neo4j, Geode, Elasticsearch, Memcached or CockroachDB)
startedAtstring (date-time)Date and time the span was started in the ISO 8601 / RFC3339 format. (example: 2019-11-22T09:00:00Z)
statusobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getSpanselecttraceId, spanId, regionGet details of a span with the given identifier.
getSpansselecttraceId, regionlimit, tokenGet a list of spans for the given trace. The response is paginated with a default limit of 100 spans per page.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
spanIdstringIdentifier of the span to get the details.
traceIdstringIdentifier of the trace to get the spans.
limitinteger (int32)The maximum number of results to fetch.
tokenstringContinuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results. token is set to null when no more pages are left.

SELECT examples

Get details of a span with the given identifier.

SELECT
id,
criticalPathContribution,
duration,
errorMessage,
events,
fields,
info,
kind,
links,
logs,
numberOfLinks,
operationName,
parentId,
remoteService,
remoteServiceColor,
remoteServiceType,
resource,
service,
serviceColor,
serviceType,
startedAt,
status
FROM sumologic.tracing.traces_spans
WHERE traceId = '{{ traceId }}' -- required
AND spanId = '{{ spanId }}' -- required
AND region = '{{ region }}' -- required
;