@@ -13,10 +13,11 @@ func NewDataCollectorHook(dataCollectorManager *controller.DataCollectorManager)
1313}
1414
1515type dataCollectorHook struct {
16+ openfeature.UnimplementedHook
1617 dataCollectorManager * controller.DataCollectorManager
1718}
1819
19- func (d * dataCollectorHook ) After (ctx context.Context , hookCtx openfeature.HookContext ,
20+ func (d * dataCollectorHook ) After (_ context.Context , hookCtx openfeature.HookContext ,
2021 evalDetails openfeature.InterfaceEvaluationDetails , hint openfeature.HookHints ) error {
2122 if evalDetails .Reason != openfeature .CachedReason {
2223 // we send it only when cached because the evaluation will be collected directly in the relay-proxy
@@ -37,7 +38,7 @@ func (d *dataCollectorHook) After(ctx context.Context, hookCtx openfeature.HookC
3738 return nil
3839}
3940
40- func (d * dataCollectorHook ) Error (ctx context.Context , hookCtx openfeature.HookContext ,
41+ func (d * dataCollectorHook ) Error (_ context.Context , hookCtx openfeature.HookContext ,
4142 err error , hint openfeature.HookHints ) {
4243 event := model.FeatureEvent {
4344 Kind : "feature" ,
@@ -52,12 +53,3 @@ func (d *dataCollectorHook) Error(ctx context.Context, hookCtx openfeature.HookC
5253 }
5354 _ = d .dataCollectorManager .AddEvent (event )
5455}
55-
56- func (d * dataCollectorHook ) Before (context.Context , openfeature.HookContext , openfeature.HookHints ) (* openfeature.EvaluationContext , error ) {
57- // Do nothing, needed to satisfy the interface
58- return nil , nil
59- }
60-
61- func (d * dataCollectorHook ) Finally (context.Context , openfeature.HookContext , openfeature.HookHints ) {
62- // Do nothing, needed to satisfy the interface
63- }
0 commit comments