Skip to content

Commit

Permalink
made tracing optional
Browse files Browse the repository at this point in the history
/werft with-observability
  • Loading branch information
Wulf Thimm authored and Wulf Thimm committed Dec 2, 2021
1 parent fc0c0a6 commit bdca791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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 += `-f ../.werft/values.tracing.yaml`;
}
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
4 changes: 0 additions & 4 deletions .werft/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ version: not-set
imagePullPolicy: Always

authProviders: []
tracing:
endpoint: http://otel-collector:14268/api/traces
samplerType: const
samplerParam: "1"

# we hit the "max. 110 pods/node" situation pretty often with our current core-dev setup.
# the proper way to fix those would be to adjust the CIDR for workload NodePool which is a bit more work.
Expand Down
4 changes: 4 additions & 0 deletions .werft/values.tracing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tracing:
endpoint: http://otel-collector:14268/api/traces
samplerType: const
samplerParam: "1"

0 comments on commit bdca791

Please sign in to comment.