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

fix: Add missing validation for LegacyMetrics APIKey #774

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

TylerHelmuth
Copy link
Contributor

Which problem is this PR solving?

  • Adds missing validation to LegacyMetrics.APIKey.

Short description of the changes

  • Add api key format validation
  • Regenerate files

@TylerHelmuth TylerHelmuth added the version: bump patch A PR with release-worthy changes and is backwards-compatible. label Jul 7, 2023
@TylerHelmuth TylerHelmuth added this to the v2.0.1 milestone Jul 7, 2023
@TylerHelmuth TylerHelmuth requested a review from a team as a code owner July 7, 2023 21:05
@@ -77,7 +77,7 @@ The sample rate is calculated from the trace ID, so all spans with the same trac

The duration after which the Dynamic Sampler should reset its internal counters.
It should be specified as a duration string.
For example, "30s" or "1m".
For example,"30s" or "1m".
Copy link
Contributor

Choose a reason for hiding this comment

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

🤨 We should probably have the space here. Was it auto-formatted out?

@kentquirk
Copy link
Contributor

The reason this wasn't specified as an apikey format is that we often have example files that specify "yourkeyhere" or something like it -- for classic keys, that won't conform to the format. "SetThisToAHoneycombKey" is a valid modern format. I'm OK with enforcing it but it might cause some problems with demo data.

@TylerHelmuth TylerHelmuth force-pushed the tyler.add-missing-validation branch from 461c1c4 to 6bacb6b Compare July 10, 2023 15:23
@TylerHelmuth TylerHelmuth force-pushed the tyler.add-missing-validation branch from 6bacb6b to 921d22b Compare July 10, 2023 16:05
@TylerHelmuth TylerHelmuth merged commit 68d1fa9 into main Jul 10, 2023
@TylerHelmuth TylerHelmuth deleted the tyler.add-missing-validation branch July 10, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: bump patch A PR with release-worthy changes and is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants