v2.0.0: Split Go SDK v6, OpenFeature Go SDK v1, lifecycle rewrite#8
Open
lzrf0cuz wants to merge 1 commit intosplitio:mainfrom
Open
v2.0.0: Split Go SDK v6, OpenFeature Go SDK v1, lifecycle rewrite#8lzrf0cuz wants to merge 1 commit intosplitio:mainfrom
lzrf0cuz wants to merge 1 commit intosplitio:mainfrom
Conversation
- Upgrade Split Go SDK to v6, OpenFeature Go SDK to v1 - Context-aware Init/Shutdown with timeout and cancellation - Singleflight initialization, atomic shutdown state - ObjectEvaluation returns FlagSetResult with per-flag configs - Flag set evaluation (cloud mode) and individual mode - Per-request evaluation and track options via context - Configuration change detection via background monitoring - Structured logging via slog with source attribution - Split SDK log adapter (SlogToSplitAdapter) - Update branding to Harness FME
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrites the provider for Split Go SDK v6 and OpenFeature Go SDK v1.
Init and Shutdown now take a context for timeouts and cancellation. ObjectEvaluation returns
FlagSetResultwith per-flag treatment and config. Cloud mode evaluates flag sets by default; localhost mode always evaluates individual flags. AddsWithEvaluationModeandWithoutMetricValuecontext options for per-request control.Monitoring goroutine detects configuration changes by polling
manager.Splits(). Logging uses slog with source attribution (split-provider,split-sdk). Includes aSlogToSplitAdapterso the Split SDK logs through the same logger.Branding updated to reference Harness FME where appropriate.
Breaking changes
github.com/splitio/split-openfeature-provider-go/v2New()parameter renamed fromapiKeytosdkKeyFlagSetResultinstead of rawmap[string]interface{}See MIGRATION.md for the full v1 to v2 guide.
Testing
Unit tests pass with race detector at >70% coverage. Integration suite covers 85 tests in localhost mode, 94 in cloud mode.