Skip to content

Commit

Permalink
show current race/crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jan 2, 2023
1 parent 090e258 commit 496fda2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# See also github.com/fortio/otel-sample-app

test:
go test -race ./...
Expand All @@ -11,9 +12,13 @@ docker-test:

start-local-jaeger:
docker run -d --name jaeger -p 16686:16686 -p 4317:4317 jaegertracing/all-in-one:latest \
--collector.otlp.enabled=true --collector.otlp.grpc.host-port=:4317
--collector.otlp.enabled=true
@echo "Jaeger UI:\nhttp://localhost:16686"

stop-local-jaeger:
docker stop jaeger
docker rm jaeger

race-test:
# Also crashes without -race
OTEL_SERVICE_NAME=race-test go run -race . load -n 40 -c 2 -qps -1 "http://localhost:8080/?delay=200ms"

0 comments on commit 496fda2

Please sign in to comment.