Releases: statsig-io/go-sdk
Releases · statsig-io/go-sdk
v1.11.0 - Diagnostics & bug fixes
- Added internal diagnostics logging
- Handle stack overflows
- Fix evaluations on iso timestamps
v1.10.0 - Custom logger option & fix network timeout
- Add option to plug in a custom output logger over the default log to console
- Apply a 3s network timeout (previously no timeout)
v1.9.0 - Layer overrides
Added new API to override a layer: OverrideLayer
v1.8.1 - Fix - dont round down fractional pass percentages
Any rule on a gate/config/holdout with a fractional pass percentage - e.g. 10.5% pass - was always rounded down when evaluated on the go-sdk. Client sdks, and all other server SDKs would evaluate this as the fraction. this release aligns the go evaluation for these rollouts with all other evaluators
v1.8.0 - Add Manual Exposure Logging Support
- Fix go version compatibility issue.
- Introduce new API for manually logging exposure and also without exposure logging:
CheckGateWithExposureLoggingDisabled
GetConfigWithExposureLoggingDisabled
GetExperimentWithExposureLoggingDisabled
GetLayerWithExposureLoggingDisabled
ManuallyLogGateExposure
ManuallyLogConfigExposure
ManuallyLogExperimentExposure
ManuallyLogLayerParameterExposure
- New option for setting timeout on initialize
InitTimeout
- Support for data adapter
v1.7.0 - Adds ErrorBoundary and Logging configuration
- Added
LoggingInterval
andLoggingMaxBufferSize
toOptions
LoggingInterval
assigns the number of seconds to wait between each batch logLoggingMaxBufferSize
is the maximum number of events to queue before batch logging
- Update logic to support Users without UserID. Now Users must have a UserID or 1 valid CustomID
- [Internal] Added evaluation details, error boundary, SDK version testing
v1.6.1 - Layer exposure bug fix
A bug was identified where holdouts were not being applied to Layer exposures. This is fixed in v1.6.1
v1.6.0 - added bootstrap options
- added options related to bootstrapping the SDK:
-
BootstrapValues
: pass a JSON string that represents the rulesets to bootstrap the SDK so that it can work even if Statsig backend is unreachable
-
RulesUpdatedCallback
: this callback is invoked whenever there are updated rulesets fetched by the SDK. It has 2 parameters, rules (string), and time (int64) that represent the JSON rulesets and the freshness of it.
v1.5.1 - make shutdown thread safe and linter fixes
- made
shutdown()
not clear the shared instance so that it's thread safe; - fixed a few linter issues in the SDK
v1.5.0 - concurrency support
- in this release we added a few tests where the SDK is being used concurrently from multiple goroutines, enabled race detector on all tests, and fixed code and tests that were broken before.
- added a
getMap()
API on DynamicConfig and Layer