feat(datasource/Tempo): Report timerange to Rudderstack (#102218)
* feat(datasource/Tempo): Report timerange to Rudderstack This adds another parameter to the Rudderstack instrumentation, reporting the query time range in seconds. Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com> * Update public/app/plugins/datasource/tempo/datasource.ts Co-authored-by: Andre Pereira <adrapereira@gmail.com> * Update public/app/plugins/datasource/tempo/datasource.ts --------- Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com> Co-authored-by: Andre Pereira <adrapereira@gmail.com>
This commit is contained in:
co-authored by
Andre Pereira
parent
e862fb3cd7
commit
bef5df2476
@@ -1529,6 +1529,8 @@ function reportTempoQueryMetrics(
|
||||
datasourceType: 'tempo',
|
||||
app: options.app ?? '',
|
||||
grafana_version: config.buildInfo.version,
|
||||
timeRangeSeconds: options.range ? options.range.to.unix() - options.range.from.unix() : 0,
|
||||
timeRange: options.range ? options.range.raw.from + ';' + options.range.raw.to : '',
|
||||
...metrics,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user