Skip to main content

trace_query_fields

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

Overview​

Nametrace_query_fields
TypeResource
Idsumologic.tracing.trace_query_fields

Fields​

The following fields are returned by SELECT queries:

List of available fields.

NameDatatypeDescription
descriptionstringShort description of the field. (example: A piece of the workflow represented by a span)
fieldstringFilter field name. (example: operation)
field_typestringIndicates the kind of a field. Possible values: SpanAttribute, SpanEventAttribute. (pattern: <code>^(SpanAttribute|SpanEventAttribute)$</code>, example: SpanEventAttribute, default: SpanAttribute, x-pattern-message: Should be one of: SpanAttribute, SpanEventAttribute.) (wire: fieldType)
no_values_reasonobject (wire: noValuesReason)
typestringThe type the values of this field will have. Possible values: DoubleTracingValue, IntegerTracingValue, StringTracingValue, DateTimeTracingValue. (example: StringTracingValue)
value_listingbooleanIndicates whether values for this field can be listed. (wire: valueListing)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionGet a list of available fields which can be used in trace search queries.

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
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)

SELECT examples​

Get a list of available fields which can be used in trace search queries.

SELECT
description,
field,
field_type,
no_values_reason,
type,
value_listing
FROM sumologic.tracing.trace_query_fields
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;