We've released Ingest Keys, but need to update the key detection logic to allow Ingest Keys to be used to send data to Classic environments.
Short description of the changes
updates the Legacy (Classic) API Key detection logic to understand the shape of a Classic Ingest Key
Adds a new parameterized test with more detailed test cases
Renames isLegacyKey with isClassicKey
bonus: updated the circleCI image for smoke tests to ubuntu-2204:2024.01.1 since the one we were using is deprecated
How to verify that this has the expected result
It should be possible to use an ingest key pointed to a classic environment after this change. Please note that the ability to create ingest keys in classic environments isn't yet publicly available (since we need to update this library and others to understand classic ingest keys).
Which problem is this PR solving?
We've released Ingest Keys, but need to update the key detection logic to allow Ingest Keys to be used to send data to Classic environments.
Short description of the changes
isLegacyKey
withisClassicKey
ubuntu-2204:2024.01.1
since the one we were using is deprecatedHow to verify that this has the expected result
It should be possible to use an ingest key pointed to a classic environment after this change. Please note that the ability to create ingest keys in classic environments isn't yet publicly available (since we need to update this library and others to understand classic ingest keys).