-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: support classic-flavored ingest keys #231
Conversation
@@ -7,6 +8,12 @@ | |||
from libhoney.transmission import Transmission | |||
|
|||
|
|||
def IsClassicKey(key): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not totally sure this belongs here? Happy to move it
@@ -84,9 +91,6 @@ def __init__(self, writekey="", dataset="", sample_rate=1, | |||
if debug: | |||
self._init_logger() | |||
|
|||
def IsClassicKey(key): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been a hot minute since I did Python seriously, and I can't remember if this method ended up being public this way or not? If it is in fact public, I'll re-add it to call the above to avoid the breaking change
… evaluate as proper bools
Which problem is this PR solving?
We've now released Ingest Keys, but in order for them to work with Classic environments properly we need to update the key detection logic.
Short description of the changes
IsClassicKey
a top level function exported fromlibhoney
to be used by the Python beeline