trace_query_fields
Creates, updates, deletes, gets or lists a trace_query_fields resource.
Overview​
| Name | trace_query_fields |
| Type | Resource |
| Id | sumologic.tracing.trace_query_fields |
Fields​
The following fields are returned by SELECT queries:
- list
List of available fields.
| Name | Datatype | Description |
|---|---|---|
description | string | Short description of the field. (example: A piece of the workflow represented by a span) |
field | string | Filter field name. (example: operation) |
field_type | string | Indicates 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_reason | object | (wire: noValuesReason) |
type | string | The type the values of this field will have. Possible values: DoubleTracingValue, IntegerTracingValue, StringTracingValue, DateTimeTracingValue. (example: StringTracingValue) |
value_listing | boolean | Indicates whether values for this field can be listed. (wire: valueListing) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | region | Get 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.
| Name | Datatype | Description |
|---|---|---|
region | string | Sumo 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​
- list
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
;