Add trace validation to testcontainer example#424
Conversation
| }); | ||
|
|
||
| // Get the Tempo datasource ID so we can query traces from grafana | ||
| String authHeader = "Basic " + Base64.getEncoder().encodeToString("admin:admin".getBytes(StandardCharsets.UTF_8)); |
There was a problem hiding this comment.
querying tempo directly seems to be easier - similar to https://github.com/grafana/oats/blob/main/yaml/traces.go#L14 - but using java
There was a problem hiding this comment.
I opened a pr to update the test container to open up the port to allow querying tempo directly
testcontainers/testcontainers-java#10192
There was a problem hiding this comment.
great!
If you want to know how Loki API works: https://github.com/search?q=repo%3Agrafana%2Foats%20SearchLoki&type=code
There was a problem hiding this comment.
i can do a followup for both testcontainers and here to add in some logging validation next
There was a problem hiding this comment.
|
@jaydeluca just a lint needed |
replaces #424 --------- Co-authored-by: Jay DeLuca <jaydeluca4@gmail.com>
Pull request was closed
Added a basic trace validation example to the testcontainer example