This commit is contained in:
marcel-dempers 2021-05-22 08:45:29 +10:00
parent bfe53146ff
commit 3974dc1bd9
3 changed files with 5 additions and 5 deletions

View File

@ -163,7 +163,7 @@ func main() {
func getPlaylists(ctx context.Context)(response string){ func getPlaylists(ctx context.Context)(response string){
span, _ := opentracing.StartSpanFromContext(ctx, "redis-get") span, _ := opentracing.StartSpanFromContext(ctx, "playlists-api - redis-get")
defer span.Finish() defer span.Finish()
playlistData, err := rdb.Get(ctx, "playlists").Result() playlistData, err := rdb.Get(ctx, "playlists").Result()

View File

@ -109,7 +109,7 @@ func main() {
func video(writer http.ResponseWriter, request *http.Request, p httprouter.Params, ctx context.Context)(response string){ func video(writer http.ResponseWriter, request *http.Request, p httprouter.Params, ctx context.Context)(response string){
span, _ := opentracing.StartSpanFromContext(ctx, "redis-get") span, _ := opentracing.StartSpanFromContext(ctx, "videos api - redis-get")
defer span.Finish() defer span.Finish()
id := p.ByName("id") id := p.ByName("id")
fmt.Print(id) fmt.Print(id)

View File

@ -2,14 +2,14 @@ version: "3.4"
services: services:
videos-web: videos-web:
container_name: videos-web container_name: videos-web
image: aimvector/service-mesh:videos-web-2.0.4 image: aimvector/service-mesh:videos-web-2.0.5
build: build:
context: ./applications/videos-web context: ./applications/videos-web
ports: ports:
- 80:80 - 80:80
playlists-api: playlists-api:
container_name: playlists-api container_name: playlists-api
image: aimvector/service-mesh:playlists-api-2.0.4 image: aimvector/service-mesh:playlists-api-2.0.5
build: build:
context: ./applications/playlists-api context: ./applications/playlists-api
environment: environment:
@ -22,7 +22,7 @@ services:
- 81:10010 - 81:10010
videos-api: videos-api:
container_name: videos-api container_name: videos-api
image: aimvector/service-mesh:videos-api-2.0.4 image: aimvector/service-mesh:videos-api-2.0.5
build: build:
context: ./applications/videos-api context: ./applications/videos-api
environment: environment: