Skip to content

Conversation

@sfc-gh-turbaszek
Copy link
Contributor

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

  4. (Optional) PR for stored-proc connector:

@sfc-gh-turbaszek sfc-gh-turbaszek force-pushed the turbaszek-SNOW-1763096-fix-aio-telemetry branch from 5dd03c6 to 4d49b11 Compare October 29, 2025 15:35
return isinstance(connection, AsyncSnowflakeConnection)
except ImportError:
return False

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this because telemetry about aio vs sync is included in application_name param in telemetry payload.

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski Nov 3, 2025

Choose a reason for hiding this comment

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

Do we have tests that assure that information is in application_name in telemetry payload? Such tests would naturally replace the deleted ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do have test_generate_telemetry_data which validates behavior of from_telemetry_data_dict which is used to build telemetry data everywhere.

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski Nov 3, 2025

Choose a reason for hiding this comment

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

Okay, I was thinking more of a test that could prevent some future unification of App_name between async driver and the sync one - due to lack of knowledge/ comment/ tests indicating that it is indeed the expected behaviour.

Its a nit tho.

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski left a comment

Choose a reason for hiding this comment

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

Left one question regarding preserving the expected telemetry behaviour in tests - to avoid accidental changes of that in the future.

return isinstance(connection, AsyncSnowflakeConnection)
except ImportError:
return False

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski Nov 3, 2025

Choose a reason for hiding this comment

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

Do we have tests that assure that information is in application_name in telemetry payload? Such tests would naturally replace the deleted ones.

@sfc-gh-turbaszek sfc-gh-turbaszek merged commit 6b77055 into dev/aio-connector Nov 3, 2025
44 of 54 checks passed
@sfc-gh-turbaszek sfc-gh-turbaszek deleted the turbaszek-SNOW-1763096-fix-aio-telemetry branch November 3, 2025 13:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants