Skip to content

Commit

Permalink
made tracing optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulf Thimm authored and Wulf Thimm committed Dec 2, 2021
1 parent fc0c0a6 commit f597616
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .werft/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ export async function deployToDev(deploymentConfig: DeploymentConfig, workspaceF
} else if (!!deploymentConfig.analytics) {
flags += ` --set analytics.writer=${deploymentConfig.analytics!}`;
}

if (deploymentConfig.withObservability) {
flags += ` --set tracing.enabled=true`;
}
werft.log("helm", "extracting versions");
try {
exec(`docker run --rm eu.gcr.io/gitpod-core-dev/build/versions:${version} cat /versions.yaml | tee versions.yaml`);
Expand Down
1 change: 1 addition & 0 deletions .werft/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ imagePullPolicy: Always

authProviders: []
tracing:
enabled: false
endpoint: http://otel-collector:14268/api/traces
samplerType: const
samplerParam: "1"
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ env:
{{- $gp := .gp -}}
{{- $comp := .comp -}}
{{- $tracing := $comp.tracing | default $gp.tracing -}}
{{- if $tracing }}
{{- if $tracing.enabled }}
{{- if $tracing.endpoint }}
- name: JAEGER_ENDPOINT
value: {{ $tracing.endpoint }}
Expand Down
6 changes: 5 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ dbEncryptionKeys:
secretName: null
file: secrets/encryption-key.json

tracing: {}
tracing:
enabled: false
endpoint: http://<ENDPOINT_URL>
samplerType: const
samplerParam: "1"
authProviders: []
# Example authProvider configurations below:
# - id: "Public-GitHub"
Expand Down

0 comments on commit f597616

Please sign in to comment.