Skip to content

Commit

Permalink
Merge pull request #4 from polshe-v/jaeger-agent-location
Browse files Browse the repository at this point in the history
Add explicit jaeger-agent location
  • Loading branch information
olezhek28 authored May 2, 2024
2 parents b2cb6d3 + b7e6f56 commit 80a9e03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion week_7/grpc_with_traces/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: jaegertracing/all-in-one:1.48
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6831:6831/udp" # jaeger-client
- "6832:6832/udp"
- "5778:5778"
- "16686:16686" # web
Expand Down
3 changes: 3 additions & 0 deletions week_7/grpc_with_traces/internal/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ func Init(logger *zap.Logger, serviceName string) {
Type: "const",
Param: 1,
},
Reporter: &config.ReporterConfig{
LocalAgentHostPort: "localhost:6831",
},
}

_, err := cfg.InitGlobalTracer(serviceName)
Expand Down

0 comments on commit 80a9e03

Please sign in to comment.