-
Notifications
You must be signed in to change notification settings - Fork 22
feat: Implement Tracking in .NET #309 #327
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
Conversation
Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #327 +/- ##
==========================================
- Coverage 86.66% 85.54% -1.12%
==========================================
Files 34 36 +2
Lines 1387 1474 +87
Branches 147 150 +3
==========================================
+ Hits 1202 1261 +59
- Misses 153 183 +30
+ Partials 32 30 -2 ☔ View full report in Codecov by Sentry. |
| /// <summary> | ||
| /// The index for the "targeting key" property when the EvaluationContext is serialized or expressed as a dictionary. | ||
| /// </summary> | ||
| internal const string TargetingKeyIndex = "targetingKey"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the TargetingKeyIndex here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we would need instead a value index if anything, that would serve the same purpose when the TrackingEventDetails are serialized.
src/OpenFeature/FeatureProvider.cs
Outdated
| public virtual Channel<object> GetEventChannel() => this.EventChannel; | ||
|
|
||
| /// <summary> | ||
| /// Use this method to track user interactions and the application state. The implementation of this method is optional. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Use this method to track user interactions and the application state. The implementation of this method is optional. | |
| /// Track a user action or application state, usually representing a business objective or outcome. The implementation of this method is optional. | |
| /// <summary> | ||
| ///A predefined value field for the tracking details. | ||
| /// </summary> | ||
| public readonly double? Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional is good.
toddbaert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the only blocker.
askpt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a couple of concerns I found during the review. Otherwise, it seems good!
toddbaert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but consider @askpt 's points. I think it's fine to throw for whitespace event keys as well.
Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com>
🤖 I have created a release *beep* *boop* --- ## [2.2.0](v2.1.0...v2.2.0) (2024-12-12) ### ✨ New Features * Feature Provider Enhancements- [#321](#321) ([#324](#324)) ([70f847b](70f847b)) * Implement Tracking in .NET [#309](#309) ([#327](#327)) ([cbf4f25](cbf4f25)) * Support Returning Error Resolutions from Providers ([#323](#323)) ([bf9de4e](bf9de4e)) ### 🧹 Chore * **deps:** update dependency fluentassertions to v7 ([#325](#325)) ([35cd77b](35cd77b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## This PR Adds support for tracking ### Related Issues Closes open-feature#309 --------- Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com> Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [2.2.0](open-feature/dotnet-sdk@v2.1.0...v2.2.0) (2024-12-12) ### ✨ New Features * Feature Provider Enhancements- [open-feature#321](open-feature#321) ([open-feature#324](open-feature#324)) ([70f847b](open-feature@70f847b)) * Implement Tracking in .NET [open-feature#309](open-feature#309) ([open-feature#327](open-feature#327)) ([cbf4f25](open-feature@cbf4f25)) * Support Returning Error Resolutions from Providers ([open-feature#323](open-feature#323)) ([bf9de4e](open-feature@bf9de4e)) ### 🧹 Chore * **deps:** update dependency fluentassertions to v7 ([open-feature#325](open-feature#325)) ([35cd77b](open-feature@35cd77b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
This PR
Adds support for tracking
Related Issues
Closes #309