From 77b0414b0bab90e8564d5f560a6b00e03a5a5c86 Mon Sep 17 00:00:00 2001 From: Elton Minetto Date: Mon, 21 Aug 2023 20:58:22 -0300 Subject: [PATCH] fix: error in jaeger path --- auth/go.mod | 2 +- auth/go.sum | 2 ++ feedbacks/go.mod | 2 +- feedbacks/go.sum | 2 ++ internal/telemetry/jaeger.go | 2 +- votes/go.mod | 2 +- votes/go.sum | 2 ++ 7 files changed, 10 insertions(+), 4 deletions(-) diff --git a/auth/go.mod b/auth/go.mod index e76efba..aad5e14 100644 --- a/auth/go.mod +++ b/auth/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/eminetto/api-o11y v0.0.11 + github.com/eminetto/api-o11y v0.0.12 github.com/go-chi/chi/v5 v5.0.8 github.com/go-chi/httplog v0.3.0 github.com/go-chi/telemetry v0.2.0 diff --git a/auth/go.sum b/auth/go.sum index c273adc..c4bd9eb 100644 --- a/auth/go.sum +++ b/auth/go.sum @@ -61,6 +61,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumC github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/eminetto/api-o11y v0.0.11 h1:PbFfGp1Cy7QaR55OBsTE1kovkJw+CT7ZBPeICfiPjIw= github.com/eminetto/api-o11y v0.0.11/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= +github.com/eminetto/api-o11y v0.0.12 h1:Ek/ycnazLv66Qlj8/LoeDeNG1/ljXwq+DhjMcHXOzG4= +github.com/eminetto/api-o11y v0.0.12/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= diff --git a/feedbacks/go.mod b/feedbacks/go.mod index e6f14f7..fac3219 100644 --- a/feedbacks/go.mod +++ b/feedbacks/go.mod @@ -3,7 +3,7 @@ module github.com/eminetto/api-o11y/feedbacks go 1.20 require ( - github.com/eminetto/api-o11y v0.0.11 + github.com/eminetto/api-o11y v0.0.12 github.com/go-chi/chi/v5 v5.0.8 github.com/go-chi/httplog v0.3.0 github.com/go-chi/telemetry v0.2.0 diff --git a/feedbacks/go.sum b/feedbacks/go.sum index a8d6cc1..6fab8e1 100644 --- a/feedbacks/go.sum +++ b/feedbacks/go.sum @@ -59,6 +59,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/eminetto/api-o11y v0.0.11 h1:PbFfGp1Cy7QaR55OBsTE1kovkJw+CT7ZBPeICfiPjIw= github.com/eminetto/api-o11y v0.0.11/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= +github.com/eminetto/api-o11y v0.0.12 h1:Ek/ycnazLv66Qlj8/LoeDeNG1/ljXwq+DhjMcHXOzG4= +github.com/eminetto/api-o11y v0.0.12/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= diff --git a/internal/telemetry/jaeger.go b/internal/telemetry/jaeger.go index 9ebd65e..1e03382 100644 --- a/internal/telemetry/jaeger.go +++ b/internal/telemetry/jaeger.go @@ -57,7 +57,7 @@ func createJaegerTraceProvider(ctx context.Context, serviceName string) (*sdktra exp, err := jaeger.New( jaeger.WithCollectorEndpoint( - jaeger.WithEndpoint(os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")), + jaeger.WithEndpoint(os.Getenv("JAEGER_SERVICE_HOST") + ":" + os.Getenv("JAEGER_SERVICE_PORT")), ), ) if err != nil { diff --git a/votes/go.mod b/votes/go.mod index 2978a25..f944b55 100644 --- a/votes/go.mod +++ b/votes/go.mod @@ -3,7 +3,7 @@ module github.com/eminetto/api-o11y/votes go 1.20 require ( - github.com/eminetto/api-o11y v0.0.11 + github.com/eminetto/api-o11y v0.0.12 github.com/go-chi/chi/v5 v5.0.8 github.com/go-chi/httplog v0.3.0 github.com/go-chi/telemetry v0.2.0 diff --git a/votes/go.sum b/votes/go.sum index a8d6cc1..6fab8e1 100644 --- a/votes/go.sum +++ b/votes/go.sum @@ -59,6 +59,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/eminetto/api-o11y v0.0.11 h1:PbFfGp1Cy7QaR55OBsTE1kovkJw+CT7ZBPeICfiPjIw= github.com/eminetto/api-o11y v0.0.11/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= +github.com/eminetto/api-o11y v0.0.12 h1:Ek/ycnazLv66Qlj8/LoeDeNG1/ljXwq+DhjMcHXOzG4= +github.com/eminetto/api-o11y v0.0.12/go.mod h1:BVyINe/YXuOod6cx9t46GBxnZ5ugi+oGHC59sMThk7Y= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=