Skip to content

Commit

Permalink
fix work opentracing
Browse files Browse the repository at this point in the history
  • Loading branch information
batazor committed Jan 12, 2022
1 parent 7bc5667 commit 37d0bf2
Show file tree
Hide file tree
Showing 14 changed files with 81 additions and 92 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ require (
github.com/go-chi/render v1.0.1
github.com/go-redis/redis v6.15.9+incompatible
github.com/golang-migrate/migrate/v4 v4.15.1
github.com/golang/protobuf v1.5.2
github.com/google/wire v0.5.0
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
Expand Down
19 changes: 7 additions & 12 deletions internal/billing/domain/billing.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 8 additions & 13 deletions internal/billing/infrastructure/rpc/billing_rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions internal/billing/infrastructure/rpc/billing_rpc_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 6 additions & 11 deletions internal/book/domain/book.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions internal/book/infrastructure/rpc/book_rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions internal/book/infrastructure/rpc/book_rpc_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/di/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func InitLogger(ctx context.Context) (*zap.Logger, error) {
}

func InitTracer(ctx context.Context, log *zap.Logger) (opentracing.Tracer, func(), error) {
viper.SetDefault("TRACER_SERVICE_NAME", "ShortLink") // Service Name
viper.SetDefault("TRACER_URI", "localhost:6831") // Tracing addr:host
viper.SetDefault("TRACER_SERVICE_NAME", "microservice-template-ddd") // Service Name
viper.SetDefault("TRACER_URI", "localhost:6831") // Tracing addr:host

config := traicing.Config{
ServiceName: viper.GetString("TRACER_SERVICE_NAME"),
Expand Down
4 changes: 3 additions & 1 deletion internal/di/wire.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//go:generate wire
//+build wireinject
//go:build wireinject
// +build wireinject

// The build tag makes sure the stub is not built in the final build.

/*
Expand Down
4 changes: 2 additions & 2 deletions internal/di/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 7 additions & 12 deletions internal/user/domain/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 7 additions & 12 deletions internal/user/infrastructure/rpc/user_rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 37d0bf2

Please sign in to comment.