Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 3c77504

Browse files
authored
Initial support for Jaeger & OpenTracing (#410)
Jaeger can be installed optionally. To install, add ``` jaeger: enabled: true ``` to install.yaml **Changes**: * adds `jaeger-client` dependency * adds optional `--tracer` flag to every service * adds utility function/wrapper to create a tracer * adds jaeger installation logic to `dispatch install` * adds HTTP middleware to inject tracing context * sets minimal supported version of Kafka to 0.11 to support message headers **Testing**: Manually tested that jaeger works (once db situation is resolved, we can enable jaeger in every deployment)
1 parent 3513318 commit 3c77504

File tree

161 files changed

+20388
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+20388
-96
lines changed

Gopkg.lock

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@
6969
name = "k8s.io/client-go"
7070
version = "kubernetes-1.9.1"
7171

72-
[[constraint]]
73-
name = "k8s.io/code-generator"
74-
version = "kubernetes-1.9.1"
75-
7672
[[constraint]]
7773
name = "github.com/sirupsen/logrus"
7874
version = "v1.0.3"

charts/dispatch/charts/api-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
- "--gateway-host={{ .Values.gateway.host }}"
4242
- "--function-manager={{ .Release.Name }}-function-manager.{{ .Release.Namespace }}"
4343
- "--resync-period={{ .Values.resyncPeriod }}"
44+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4445
{{- if .Values.global.debug }}
4546
- "--debug"
4647
{{- end }}

charts/dispatch/charts/application-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ spec:
3737
- "--tls-port=443"
3838
- "--tls-certificate=/data/tls/tls.crt"
3939
- "--tls-key=/data/tls/tls.key"
40+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4041
{{- if .Values.global.debug }}
4142
- "--debug"
4243
{{- end }}

charts/dispatch/charts/event-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ spec:
4949
- "--tls-port=443"
5050
- "--tls-certificate=/data/tls/tls.crt"
5151
- "--tls-key=/data/tls/tls.key"
52+
- "--tracer={{ .Values.global.tracer.endpoint }}"
5253
{{- if .Values.global.debug }}
5354
- "--debug"
5455
{{- end }}

charts/dispatch/charts/function-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ spec:
4242
- "--tls-port=443"
4343
- "--tls-certificate=/data/tls/tls.crt"
4444
- "--tls-key=/data/tls/tls.key"
45+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4546
{{- if .Values.global.debug }}
4647
- "--debug"
4748
{{- end }}

charts/dispatch/charts/identity-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ spec:
3939
- "--tls-certificate=/data/tls/tls.crt"
4040
- "--tls-key=/data/tls/tls.key"
4141
- "--oauth2-proxy-auth-url=http://localhost:{{ .Values.oauth2proxy.service.internalPort }}/v1/iam/oauth2/auth"
42+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4243
{{- if .Values.global.skipAuth }}
4344
- "--skip-auth"
4445
{{- end }}

charts/dispatch/charts/image-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
- "--tls-port=443"
3939
- "--tls-certificate=/data/tls/tls.crt"
4040
- "--tls-key=/data/tls/tls.key"
41+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4142
{{- if .Values.global.debug }}
4243
- "--debug"
4344
{{- end }}

charts/dispatch/charts/secret-store/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ spec:
3939
- "--db-username={{ .Values.global.db.user }}"
4040
- "--db-password={{ .Values.global.db.password }}"
4141
- "--db-database={{ .Values.global.db.database }}"
42+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4243
{{- if .Values.global.debug }}
4344
- "--debug"
4445
{{- end }}

charts/dispatch/charts/service-manager/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ spec:
4040
- "--db-password={{ .Values.global.db.password }}"
4141
- "--db-database={{ .Values.global.db.database }}"
4242
- "--secret-store={{ .Release.Name }}-secret-store"
43+
- "--tracer={{ .Values.global.tracer.endpoint }}"
4344
{{- if .Values.global.debug }}
4445
- "--debug"
4546
{{- end }}

0 commit comments

Comments
 (0)