Skip to content

Conversation

@Flgado
Copy link
Member

@Flgado Flgado commented Sep 2, 2025

Description

This PR adds support for the X-Trino-Client-Tags header to be pass as connection url.
The X-Trino-Client-Tags header is part of the official Trino client protocol and allows sending a comma-separated list of tags. These tags can be used for resource management, query monitoring, and routing rules.
This Pr also add integration tests to X-Trino-Client-Tags header when is passed as NamedArg

Testing

Integration tests ensure that Trino correctly receives the tags by checking the query status and validating that the tags sent are the ones set for that query session.

Motivation

This feature was requested by the community in issue #121 and is also needed by grafana-trino#309 that depends on trino go client (so is good to have integration tests making sure is working properly .

@cla-bot cla-bot bot added the cla-signed label Sep 2, 2025
@harrisoncramer
Copy link

We also need this in order to properly ingest metrics from the event APIs! Would love to see it merged, let me know if there's anything I can do to help expedite.

@Flgado Flgado requested a review from nineinchnick September 3, 2025 21:04
@nineinchnick nineinchnick merged commit 66c0bd8 into trinodb:master Sep 30, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants