Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
62138e8a
Unverified
Commit
62138e8a
authored
Nov 05, 2020
by
Zoltán Bedi
Committed by
GitHub
Nov 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tempo: fix test data source (#28836)
parent
9155f463
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
public/app/plugins/datasource/tempo/datasource.ts
+3
-4
No files found.
public/app/plugins/datasource/tempo/datasource.ts
View file @
62138e8a
...
...
@@ -79,13 +79,12 @@ export class TempoDatasource extends DataSourceApi<TempoQuery> {
try
{
await
this
.
_request
(
`/api/traces/random`
).
toPromise
();
}
catch
(
e
)
{
// As we are not searching for a valid trace here this will definitely fail but we should return 502 if it's
// unreachable. 500 should otherwise be from tempo it self but probably makes sense to report them here.
if
(
e
?.
status
>=
500
&&
e
?.
status
<
600
)
{
// If all went well this request will get back with 400 - Bad request
if
(
e
?.
status
!==
400
)
{
throw
e
;
}
}
return
true
;
return
{
status
:
'success'
,
message
:
'Data source is working'
}
;
}
getTimeRange
():
{
start
:
number
;
end
:
number
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment