Skip to content

Commit

Permalink
fix: jaeger tracer nil pointer (#644)
Browse files Browse the repository at this point in the history
* docker ls -a

Signed-off-by: seeflood <zhou.qunli@foxmail.com>

* fix jaeger

Signed-off-by: seeflood <zhou.qunli@foxmail.com>
  • Loading branch information
seeflood authored Jun 13, 2022
1 parent 5324b80 commit d4f51fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cmd/layotto/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
"strconv"
"time"

mosn_jaeger "mosn.io/mosn/pkg/trace/jaeger"

"github.com/dapr/components-contrib/secretstores"
"github.com/dapr/components-contrib/secretstores/aws/parameterstore"
"github.com/dapr/components-contrib/secretstores/aws/secretmanager"
Expand Down Expand Up @@ -516,7 +518,7 @@ func ExtensionsRegister(_ *cli.Context) {
trace.RegisterTracerBuilder("SOFATracer", protocol.HTTP1, tracehttp.NewTracer)
trace.RegisterTracerBuilder("SOFATracer", lprotocol.Layotto, diagnostics.NewTracer)
trace.RegisterTracerBuilder(skywalking.SkyDriverName, lprotocol.Layotto, lsky.NewGrpcSkyTracer)
trace.RegisterTracerBuilder("Jaeger", lprotocol.Layotto, jaeger.NewGrpcJaegerTracer)
trace.RegisterTracerBuilder(mosn_jaeger.DriverName, lprotocol.Layotto, jaeger.NewGrpcJaegerTracer)
}

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/layotto_multiple_api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
sercetstores_kubernetes "github.com/dapr/components-contrib/secretstores/kubernetes"
secretstore_env "github.com/dapr/components-contrib/secretstores/local/env"
secretstore_file "github.com/dapr/components-contrib/secretstores/local/file"
mosn_jaeger "mosn.io/mosn/pkg/trace/jaeger"

secretstores_loader "mosn.io/layotto/pkg/runtime/secretstores"

Expand Down Expand Up @@ -529,8 +530,7 @@ func ExtensionsRegister(_ *cli.Context) {
trace.RegisterTracerBuilder("SOFATracer", protocol.HTTP1, tracehttp.NewTracer)
trace.RegisterTracerBuilder("SOFATracer", "layotto", diagnostics.NewTracer)
trace.RegisterTracerBuilder(skywalking.SkyDriverName, lprotocol.Layotto, lsky.NewGrpcSkyTracer)
trace.RegisterTracerBuilder("Jaeger", lprotocol.Layotto, jaeger.NewGrpcJaegerTracer)

trace.RegisterTracerBuilder(mosn_jaeger.DriverName, lprotocol.Layotto, jaeger.NewGrpcJaegerTracer)
}

func main() {
Expand Down
4 changes: 2 additions & 2 deletions etc/script/test-quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ release_resource() {
# remove containers
keywords="redis skywalking hangzhouzk minio"
for key in ${keywords}; do
if [ $(docker container ls | grep $key | wc -l) -gt 0 ]; then
if [ $(docker container ls -a | grep $key | wc -l) -gt 0 ]; then
echo "Deleting containers of $key : " $to_delete
docker rm -f $(docker container ls | grep $key | awk '{ print $1 }')
docker rm -f $(docker container ls -a | grep $key | awk '{ print $1 }')
fi
done
}
Expand Down

0 comments on commit d4f51fd

Please sign in to comment.