Skip to content

Add trace logs from driver #29

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

Merged
merged 5 commits into from
Jun 27, 2025
Merged

Conversation

kuiperda
Copy link
Contributor

@kuiperda kuiperda commented Jun 3, 2025

Add trace logging from the driver. Also add missing 'finished collection' message for deleted tables.

@kuiperda kuiperda changed the title test more debug logs Add trace logs from driver Jun 16, 2025
@kuiperda kuiperda marked this pull request as ready for review June 16, 2025 17:48
@kuiperda kuiperda requested a review from a team as a code owner June 16, 2025 17:48
@@ -119,6 +119,7 @@ func (c Config) snowflakeConnectionString() (string, error) {
Role: c.Role,
Warehouse: c.Warehouse,
Database: "SNOWFLAKE",
Tracing: "trace",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be configurable, can we have this be confgured via a new configuration parameter to ensure the logs aren't too noisy when not debugging an issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, having it be configurable would be ideal

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll update it this week.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dehaansa @Dasomeone Updated. I tested running the exporter with and without this flag set, it worked as expected.

Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, thanks Daniel!

Copy link

@dehaansa dehaansa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for updating the exporter with this! We'll have to get it into Alloy once it's merged.

@kuiperda
Copy link
Contributor Author

@Dasomeone I cannot merge this, can you?

@Dasomeone Dasomeone merged commit 0c2feac into grafana:main Jun 27, 2025
3 checks passed
@Dasomeone
Copy link
Member

Of course @kuiperda , apologies forgot you can't on this repo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants