-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEP-0124 implement opentelemetry and jaeger tracing
Adds opentelemetry instrumentation code to pipelinerun and taskrun reconcilers. Also made required changes in the main.go to include jaeger as tracing backend
- Loading branch information
1 parent
38c739a
commit d99fe3b
Showing
193 changed files
with
37,383 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Tracing setup | ||
|
||
This sections shows how to enable tracing for tekton reconcilers and | ||
capture traces in Jaeger | ||
|
||
## Prerequisites | ||
|
||
Jaeger should be installed and accessible from the cluster. The easiest | ||
way to set it up is using helm as below | ||
|
||
the following command installs Jaeger in `jaeger` namespace | ||
|
||
``` | ||
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts | ||
helm upgrade -i jaeger jaegertracing/jaeger -n jaeger --create-namespace | ||
``` | ||
|
||
Use port-forwarding to open the jaeger query UI or adjust the service | ||
type to Loadbalancer for accessing the service directly | ||
|
||
``` | ||
kubectl port-forward svc/jaeger-query -n jaeger 8080:80 | ||
``` | ||
|
||
Check the official [Jaeger docs](https://www.jaegertracing.io/docs/) on how to work with Jaeger | ||
|
||
## Enabling tracing | ||
|
||
Tekton pipelines controller expects the following environment variables to be able to connect to jaeger: | ||
|
||
* `OTEL_EXPORTER_JAEGER_ENDPOINT` is the HTTP endpoint for sending spans directly to a collector. | ||
* `OTEL_EXPORTER_JAEGER_USER` is the username to be sent as authentication to the collector endpoint. | ||
* `OTEL_EXPORTER_JAEGER_PASSWORD` is the password to be sent as authentication to the collector endpoint. | ||
|
||
`OTEL_EXPORTER_JAEGER_ENDPOINT` is the only manadatory variable to enable tracing. You can find these variables in the controller manifest as well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.