diff --git a/api-gateway/src/main/resources/application-prod.yaml b/api-gateway/src/main/resources/application-prod.yaml new file mode 100644 index 0000000..fe046db --- /dev/null +++ b/api-gateway/src/main/resources/application-prod.yaml @@ -0,0 +1,3 @@ +management: + tracing: + enabled: true diff --git a/api-gateway/src/main/resources/application.yaml b/api-gateway/src/main/resources/application.yaml index e3ee983..3eb0c25 100644 --- a/api-gateway/src/main/resources/application.yaml +++ b/api-gateway/src/main/resources/application.yaml @@ -39,6 +39,13 @@ spring: filters: - JWTAuthenticationFilter - RewritePath=/user/(?/?.*), /$\{segment} + - id: photo-service-add-photo + uri: http://photo-service + predicates: + - Path=/photo/v1/photos + - Method=POST + filters: + - RewritePath=/photo/(?/?.*), /$\{segment} - id: photo-service uri: http://photo-service predicates: @@ -64,6 +71,7 @@ management: tracing: sampling: probability: 1.0 + enabled: false zipkin: tracing: endpoint: http://zipkin/api/v2/spans diff --git a/photo-service/src/main/resources/application-prod.yaml b/photo-service/src/main/resources/application-prod.yaml new file mode 100644 index 0000000..fe046db --- /dev/null +++ b/photo-service/src/main/resources/application-prod.yaml @@ -0,0 +1,3 @@ +management: + tracing: + enabled: true diff --git a/photo-service/src/main/resources/application.yaml b/photo-service/src/main/resources/application.yaml index dc14e9c..6845a49 100644 --- a/photo-service/src/main/resources/application.yaml +++ b/photo-service/src/main/resources/application.yaml @@ -37,6 +37,7 @@ management: tracing: sampling: probability: 1.0 + enabled: false zipkin: tracing: endpoint: http://zipkin/api/v2/spans diff --git a/user-service/src/main/resources/application-prod.yaml b/user-service/src/main/resources/application-prod.yaml new file mode 100644 index 0000000..fe046db --- /dev/null +++ b/user-service/src/main/resources/application-prod.yaml @@ -0,0 +1,3 @@ +management: + tracing: + enabled: true diff --git a/user-service/src/main/resources/application.yaml b/user-service/src/main/resources/application.yaml index c627c58..951efb5 100644 --- a/user-service/src/main/resources/application.yaml +++ b/user-service/src/main/resources/application.yaml @@ -39,6 +39,7 @@ management: tracing: sampling: probability: 1.0 + enabled: false zipkin: tracing: endpoint: http://zipkin/api/v2/spans