kinbiko / bugsnag

Well-documented, maintainable, idiomatic, opinionated, and *unofficial* rewrite of the Bugsnag Go notifier
MIT License
3 stars 0 forks source link

[Feature Request] Add feature flag support #42

Open kinbiko opened 2 years ago

kinbiko commented 2 years ago

What problem are you trying to solve?

The error reporting API has now been updated to support feature flags, and there's no reason not to allow this feature via this package.

Announcement

Describe how you wish this package would help you solve the problem

Add a WithFeatureFlag(ctx context.Context, featureFlag, variant string) context.Context function to the notifier, and pass this information along in error reports.

There does not seem to be a need to add this in sessions.