Tempo: Send the correct start time when making a TraceQL query (#59128)

This commit is contained in:
Hamas Shafiq 2022-11-23 13:45:10 +00:00 committed by GitHub
parent 5af9a511c0
commit 6d94fa6aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
this._request('/api/search', { this._request('/api/search', {
q: targets.traceql[0].query, q: targets.traceql[0].query,
limit: options.targets[0].limit, limit: options.targets[0].limit,
start: 0, // Currently the API doesn't return traces when using the 'From' time selected in Explore start: options.range.from.unix(),
end: options.range.to.unix(), end: options.range.to.unix(),
}).pipe( }).pipe(
map((response) => { map((response) => {