Skip to content

Commit

Permalink
removes statsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhang Balkundi committed Mar 25, 2024
1 parent f9ea645 commit d9c0c23
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 297 deletions.
10 changes: 1 addition & 9 deletions example/sampleapp/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build ignore

package main

import (
Expand All @@ -8,8 +6,6 @@ import (
"math/rand"
"time"

"github.com/gojekfarm/ziggurat/v2/mw/statsd"

"github.com/gojekfarm/ziggurat/v2/kafka"
"github.com/gojekfarm/ziggurat/v2/logger"
"github.com/gojekfarm/ziggurat/v2/mw/rabbitmq"
Expand All @@ -22,10 +18,6 @@ func main() {
ctx := context.Background()
l := logger.NewLogger(logger.LevelInfo)

statsClient := statsd.NewPublisher(statsd.WithLogger(l),
statsd.WithDefaultTags(statsd.Tags{"ziggurat-version": "v162"}),
statsd.WithPrefix("ziggurat_v162"))

kcg := kafka.ConsumerGroup{
Logger: nil,
GroupConfig: kafka.ConsumerConfig{
Expand Down Expand Up @@ -58,7 +50,7 @@ func main() {
return nil
})

h := ziggurat.Use(router, statsClient.PublishEventDelay, statsClient.PublishHandlerMetrics)
h := ziggurat.Use(router)

if runErr := zig.Run(ctx, h, &kcg); runErr != nil {
l.Error("error running streams", runErr)
Expand Down
41 changes: 0 additions & 41 deletions mw/statsd/options.go

This file was deleted.

62 changes: 0 additions & 62 deletions mw/statsd/run_test.go

This file was deleted.

158 changes: 0 additions & 158 deletions mw/statsd/statsd.go

This file was deleted.

11 changes: 0 additions & 11 deletions mw/statsd/tags.go

This file was deleted.

16 changes: 0 additions & 16 deletions mw/statsd/tags_test.go

This file was deleted.

0 comments on commit d9c0c23

Please sign in to comment.