Skip to content

Releases: statsig-io/go-sdk

v1.14.0 - Evaluation callbacks

17 Nov 20:30
Compare
Choose a tag to compare

New option EvaluationCallbacks is a struct of callbacks that get triggered on evaluations. Callbacks receive the evaluated result and exposure event.

type EvaluationCallbacks struct {
	GateEvaluationCallback       func(name string, result bool, exposure *ExposureEvent)
	ConfigEvaluationCallback     func(name string, result DynamicConfig, exposure *ExposureEvent)
	ExperimentEvaluationCallback func(name string, result DynamicConfig, exposure *ExposureEvent)
	LayerEvaluationCallback      func(name string, param string, result DynamicConfig, exposure *ExposureEvent)
}

Minor bug fix on version comparison for non-numeric target values

Included In This Release

  • 6559260 Kenny Yi
    • evaluation callbacks
  • e767267 Kenny Yi
    • fix parsing versions

Full Changelog: v1.13.0...v1.14.0

v1.13.0 - Expose group name for DynamicConfigs & Layers

13 Nov 23:18
Compare
Choose a tag to compare

Expose the evaluated GroupName on DynamicConfigs and Layers

Included In This Release

  • c6024de sroyal-statsig
    • Hashed SDK Keys to App IDs (#133)
  • 88c3762 Kenny Yi
    • add group name for layers and configs
  • f1d79bb Kenny Yi
    • add statsig metadata to sdk_exception logs
  • 071d44d Kenny Yi
    • delete version test

Full Changelog: v1.12.2...v1.13.0

v1.12.2 - Fix DataAdapter interface

04 Oct 21:38
Compare
Choose a tag to compare

Make data adapter API external

Included In This Release

  • e6e9a07 Kenny Yi
    • make data adapter API external

Full Changelog: v1.12.1...v1.12.2

v1.12.1 - Disable debug logging by default

19 Sep 21:25
Compare
Choose a tag to compare

Make debug logs disabled by default. To enable, set the option EnableDebug to true in OutputLoggerOptions

Full Changelog: v1.12.0...v1.12.1

v1.12.0 - Client bootstrapping with target apps

18 Sep 21:29
Compare
Choose a tag to compare
  • New API GetClientInitializeResponseForTargetApp supports bootstrapping client SDKs with a client key tied to a target app
  • Added internal diagnostics on API calls

Full Changelog: v1.11.0...v1.12.0

v1.11.0 - Diagnostics & bug fixes

29 Aug 17:32
Compare
Choose a tag to compare
  • Added internal diagnostics logging
  • Handle stack overflows
  • Fix evaluations on iso timestamps

v1.10.0 - Custom logger option & fix network timeout

06 Jul 18:29
Compare
Choose a tag to compare
  • 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

02 May 23:44
33b7121
Compare
Choose a tag to compare

Added new API to override a layer: OverrideLayer

v1.8.1 - Fix - dont round down fractional pass percentages

04 Feb 00:55
b4d457c
Compare
Choose a tag to compare

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

06 Dec 19:21
Compare
Choose a tag to compare
  • 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