Skip to content
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 ingest keys #371

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

brookesargent
Copy link
Contributor

@brookesargent brookesargent commented Mar 4, 2024

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

  • updates the Classic API Key detection logic to understand the shape of a Classic Ingest Key
  • updates tests with a more comprehensive list of cases
  • 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).

@brookesargent brookesargent marked this pull request as ready for review March 4, 2024 19:37
@brookesargent brookesargent requested a review from a team as a code owner March 4, 2024 19:37
@brookesargent brookesargent requested a review from a team March 4, 2024 19:37
@MikeGoldsmith MikeGoldsmith added type: enhancement New feature or request version: bump minor A PR that adds behavior, but is backwards-compatible. labels Mar 4, 2024
Copy link
Member

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

Basic code formatting

@cartermp
Copy link
Member

cartermp commented Mar 4, 2024

wait wtf where did my suggestion go 💀

Copy link
Member

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

code style change suggestion again?

src/Honeycomb.OpenTelemetry/HoneycombOptions.cs Outdated Show resolved Hide resolved
MikeGoldsmith and others added 2 commits March 5, 2024 13:02
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @brookesargent.

I merged the suggested formatting from @cartermp plus updated the smoke test image that needed updating.

@brookesargent brookesargent merged commit 415e430 into main Mar 5, 2024
4 checks passed
@brookesargent brookesargent deleted the brooke.support-classic-ingest-keys branch March 5, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants