You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user is looking to do a query on their data source named: ${source.name} of type ${source.kind}.
300
300
301
-
The ${source.kind===SourceKind.Log ? 'log level' : 'span status code'} is stored in ${source.severityTextExpression}.
302
-
You can identify services via ${source.serviceNameExpression}
301
+
${
302
+
source.kind===SourceKind.Log
303
+
? `The log level is stored in ${source.severityTextExpression}.`
304
+
: source.kind===SourceKind.Trace
305
+
? `The span status code is stored in ${source.statusCodeExpression}.`
306
+
: ''
307
+
}
308
+
309
+
${'serviceNameExpression'insource ? `You can identify services via ${source.serviceNameExpression}` : ''}
310
+
303
311
${
304
312
source.kind===SourceKind.Trace
305
313
? `Duration of spans can be queried via ${source.durationExpression} which is expressed in 10^-${source.durationPrecision} seconds of precision.
306
314
Span names under ${source.spanNameExpression} and span kinds under ${source.spanKindExpression}`
307
-
: `The log body can be queried via ${source.bodyExpression}`
315
+
: source.kind===SourceKind.Log
316
+
? `The log body can be queried via ${source.bodyExpression}`
317
+
: ''
308
318
}
309
-
Various log/span-specific attributes as a Map can be found under ${source.eventAttributesExpression} while resource attributes that follow the OpenTelemetry semantic convention can be found under ${source.resourceAttributesExpression}
319
+
${'eventAttributesExpression'insource ? `Various log/span-specific attributes as a Map can be found under ${source.eventAttributesExpression}.` : ''}
320
+
${'resourceAttributesExpression'insource ? `Resource attributes that follow the OpenTelemetry semantic convention can be found under ${source.resourceAttributesExpression}.` : ''}
310
321
You must use the full field name ex. "column['key']" or "column.key" as it appears.
311
322
312
323
The following is a list of properties and example values that exist in the source:
0 commit comments