Tempo: Fix "undefined is not object (evaluating 'super.query')" error (#113722)

remove arrow function
This commit is contained in:
ismail simsek
2025-11-14 15:48:17 +01:00
committed by GitHub
parent 77aac05b09
commit f7e07d814a
@@ -632,7 +632,7 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
); );
} }
handleTraceQlQuery = (options: DataQueryRequest<TempoQuery>, targets: { [type: string]: TempoQuery[] }) => { handleTraceQlQuery(options: DataQueryRequest<TempoQuery>, targets: { [type: string]: TempoQuery[] }) {
const startTime = performance.now(); const startTime = performance.now();
const traceqlSearchTargets = targets.traceqlSearch || targets.traceql; const traceqlSearchTargets = targets.traceqlSearch || targets.traceql;
const appliedQuery = this.applyVariables(traceqlSearchTargets[0], options.scopedVars); const appliedQuery = this.applyVariables(traceqlSearchTargets[0], options.scopedVars);
@@ -710,7 +710,7 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
return of({ error: { message: getErrorMessage(err?.data?.message) }, data: [] }); return of({ error: { message: getErrorMessage(err?.data?.message) }, data: [] });
}) })
); );
}; }
// this is just a short term function, we will remove once we have rolled // this is just a short term function, we will remove once we have rolled
// out the backend migration and are happy with the stability of the feature // out the backend migration and are happy with the stability of the feature