Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opentracing to DistributedQueryRunner #18184

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Jul 7, 2023

This change makes it easier to access tracing information while using DistributedQueryRunner-s to work with tests.

Trace search link is printed to the console so it's easier to access trace information directly:

Screenshot 2023-07-08 at 00 07 15

The standard Jeager ui is used:

Screenshot 2023-07-08 at 00 08 32

@cla-bot cla-bot bot added the cla-signed label Jul 7, 2023
@github-actions github-actions bot added the bigquery BigQuery connector label Jul 8, 2023
@wendigo wendigo force-pushed the serafin/query-runner-tracing branch 2 times, most recently from f126b5d to b3fddc6 Compare July 8, 2023 08:53
@wendigo wendigo requested a review from nineinchnick July 10, 2023 13:38
@wendigo wendigo force-pushed the serafin/query-runner-tracing branch from b3fddc6 to c41993d Compare July 11, 2023 11:31
@wendigo
Copy link
Contributor Author

wendigo commented Jul 11, 2023

200.769 s to run HiveConnectorTest with TRACING=1
181.764 to run HiveConnectorTest with TRACING=0

@wendigo wendigo force-pushed the serafin/query-runner-tracing branch from c41993d to ec724e6 Compare July 11, 2023 13:50
This change makes it easier to access tracing information while using DistributedQueryRunners to work with tests.
Tracing is disabled by default and can be enabled using environment variable TRACING=true or TRACING=1.

When enabled, log message while be displayed on the console with the link to the query id trace search, i.e.

```
io.trino.testing.DistributedQueryRunner	TRACING: 20230711_111250_05285_4dkkq :: http://localhost:52009/search?operation=query&service=trino&tags=%7B%22trino.query_id%22:%20%2220230711_111250_05285_4dkkq%22%7D
```
@wendigo wendigo force-pushed the serafin/query-runner-tracing branch from ec724e6 to 85618c1 Compare July 11, 2023 18:39
@wendigo wendigo merged commit 4701024 into trinodb:master Jul 12, 2023
@wendigo wendigo deleted the serafin/query-runner-tracing branch July 12, 2023 15:32
@github-actions github-actions bot added this to the 422 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery BigQuery connector cla-signed
Development

Successfully merging this pull request may close these issues.

4 participants