Skip to content

Commit

Permalink
fix: comment debug statements (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain authored Apr 15, 2024
1 parent 3f39d46 commit fb114be
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
16 changes: 8 additions & 8 deletions example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ module github.com/SigNoz/zap_otlp/example

go 1.19

replace (
github.com/SigNoz/zap_otlp => ../
github.com/SigNoz/zap_otlp/zap_otlp_encoder => ../zap_otlp_encoder
github.com/SigNoz/zap_otlp/zap_otlp_sync => ../zap_otlp_sync
)
// replace (
// github.com/SigNoz/zap_otlp => ../
// github.com/SigNoz/zap_otlp/zap_otlp_encoder => ../zap_otlp_encoder
// github.com/SigNoz/zap_otlp/zap_otlp_sync => ../zap_otlp_sync
// )

require (
github.com/SigNoz/zap_otlp v0.1.0
github.com/SigNoz/zap_otlp/zap_otlp_encoder v0.0.0-00010101000000-000000000000
github.com/SigNoz/zap_otlp/zap_otlp_sync v0.0.0-00010101000000-000000000000
github.com/SigNoz/zap_otlp v0.1.3
github.com/SigNoz/zap_otlp/zap_otlp_encoder v0.0.0-20240413040607-3f39d463daa2
github.com/SigNoz/zap_otlp/zap_otlp_sync v0.0.0-20240413040607-3f39d463daa2
go.opentelemetry.io/otel v1.16.0
go.opentelemetry.io/otel/sdk v1.16.0
go.opentelemetry.io/otel/trace v1.16.0
Expand Down
6 changes: 6 additions & 0 deletions example/go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
github.com/SigNoz/zap_otlp v0.1.3 h1:VeXfQW3gTuxO2y6+avjwSfy1bVWyThM2PO/2uKpR928=
github.com/SigNoz/zap_otlp v0.1.3/go.mod h1:SFcTpRc3obuS1qZDJ70t8EQb+4dF1pXdNZp5Sxrn1Qg=
github.com/SigNoz/zap_otlp/zap_otlp_encoder v0.0.0-20240413040607-3f39d463daa2 h1:4nn2sViE3oHVn9SkU+nWnqUoFHQL6qquSx3Obw3ThcM=
github.com/SigNoz/zap_otlp/zap_otlp_encoder v0.0.0-20240413040607-3f39d463daa2/go.mod h1:5OrONYei+6ZxI7gl1S8oj7AZA7m+Gbct9tDH4TBfp20=
github.com/SigNoz/zap_otlp/zap_otlp_sync v0.0.0-20240413040607-3f39d463daa2 h1:q3Har8yR1Kl6/a3FlqXVROOHZTvcgeDFJZVGzjcT60U=
github.com/SigNoz/zap_otlp/zap_otlp_sync v0.0.0-20240413040607-3f39d463daa2/go.mod h1:vGRQaGqdIDDshixKOf+8WiLmMcmKz8+T1LhlRVXi/5k=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
Expand Down
9 changes: 8 additions & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ func (a App) Hello(ctx context.Context, user string) error {
data := map[string]string{
"hello": "world",
}
a.logger.Info("unamed: hello from the function to user: "+user, zap.Any("test", data), zap.String("user", user), zapotlp.SpanCtx(ctx), zap.Duration("duration", time.Second*2))
a.logger.Info("unamed: hello from the function to user: "+user, zap.Any("rand struct",
struct {
Field1 string
Field2 int
}{
Field1: "asadadas",
Field2: 10,
}), zap.Any("test", data), zap.String("user", user), zapotlp.SpanCtx(ctx), zap.Duration("duration", time.Second*2))
a.logger.Named("my").Info("my1: hello from the function to user: "+user, zap.String("user", user), zapotlp.SpanCtx(ctx), zap.Duration("duration", time.Second*2))
a.logger.Named("my1").Info("my2: hello from the function to user: "+user, zap.String("user", user), zapotlp.SpanCtx(ctx), zap.Duration("duration", time.Second*2))

Expand Down
2 changes: 1 addition & 1 deletion zap_otlp_encoder/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
replace github.com/SigNoz/zap_otlp => ../

require (
github.com/SigNoz/zap_otlp v0.1.0
github.com/SigNoz/zap_otlp v0.1.3
github.com/smartystreets/goconvey v1.8.1
go.opentelemetry.io/otel/sdk v1.16.0
go.opentelemetry.io/otel/trace v1.16.0
Expand Down

0 comments on commit fb114be

Please sign in to comment.