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

Add environment & services support #170

Merged
merged 5 commits into from
Mar 28, 2022
Merged

Add environment & services support #170

merged 5 commits into from
Mar 28, 2022

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Mar 24, 2022

Which problem is this PR solving?

Updates the config class to default to "unknown_dataset" or trim the dataset value if a non-classsic API (write) key is used. Default behaviour for classic API keys is unchanged.

Short description of the changes

  • Adds getDataset func that determines dataset, including getting defaults, based on the set API key
  • Adds tests to verify behaviour

@MikeGoldsmith MikeGoldsmith added type: enhancement version: bump minor A PR that adds behavior, but is backwards-compatible. labels Mar 24, 2022
@MikeGoldsmith MikeGoldsmith requested a review from a team March 24, 2022 13:55
@MikeGoldsmith MikeGoldsmith self-assigned this Mar 24, 2022
libhoney.go Outdated Show resolved Hide resolved
libhoney.go Show resolved Hide resolved
@MikeGoldsmith
Copy link
Contributor Author

Updated with requested changes - thanks @vreynolds

@MikeGoldsmith MikeGoldsmith merged commit 4726fea into main Mar 28, 2022
@MikeGoldsmith MikeGoldsmith deleted the mike/e-and-s branch March 28, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement 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.

Update for E&S
2 participants