Skip to content

Conversation

@zurawiki
Copy link

@zurawiki zurawiki commented Oct 9, 2025

TL;DR

Added User-Agent headers to API requests with version and git SHA information (to make traffic identification easier)

What changed?

  • Added __version__ variable to track the package version
  • Implemented helper functions to get the git SHA of the current commit
  • Created a function to build a User-Agent string that includes version and git SHA
  • Replaced individual requests calls with a shared session that includes the User-Agent header
  • Moved the requests import to the top-level module

How to test?

TODO

Copy link
Author

zurawiki commented Oct 9, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@zurawiki zurawiki marked this pull request as ready for review October 9, 2025 21:27
@zurawiki zurawiki marked this pull request as draft October 9, 2025 21:30
@zurawiki zurawiki force-pushed the Add_version_tracking_and_user_agent_to_requests_session branch from 3078aa8 to 3e35f5f Compare October 29, 2025 17:06
@zurawiki zurawiki marked this pull request as ready for review November 4, 2025 12:46
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.

2 participants