-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(metrics): Migrate from OpenCensus to OpenTelemetry #9043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The following is the coverage report on the affected files.
|
bab5a44 to
a2ea129
Compare
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
|
/retest |
|
The following is the coverage report on the affected files.
|
|
/retest |
|
Re knative bump, we discussed multiple times that we want knative/pkg@04fdd0b included in the next bump, even though it only exists in main for now (not even in 1.20). It'll unlock the better finalizer management which proved to be an issue for Tekton deployments with multiple controllers managing the same PR/TR resources. So do we want to bump knative/pkg even higher? |
|
/assign @vdemeester @waveywaves |
|
@enarha I have updated to latest knative/pkg for now. |
|
Why are ci tests being skipped? |
|
/kind feature |
|
@vdemeester @waveywaves Let's review and merge this. |
|
/assign @twoGiants |
|
/hold I found an issue while testing. Seems some mistake while rebasing. |
1 similar comment
|
/hold I found an issue while testing. Seems some mistake while rebasing. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold cancel |
|
I tested this. It's working fine. @waveywaves @vdemeester |
|
@tektoncd/chains-maintainers @tektoncd/triggers-maintainers @tektoncd/results-maintainers You can use the commits in this PR as steps to update knative/pkg and migrate to otel. |
@waveywaves @vdemeester @twoGiants Let's review this so that other components are unblocked. |
|
cc: @divyansh42 (results) @infernus01 (triggers) @anithapriyanatarajan (chains) |
This upgrades knative to latest and other dependent dependencies.
Replaces the legacy knative.dev/pkg/metrics dependency with knative.dev/pkg/observability/configmap to align with the OpenTelemetry migration and ensure correct configuration loading.
This isn't supported after knative otel's migration.
The knativetest.Flags.EmitMetrics flag is no longer supported after the migration to OpenTelemetry. This commit removes the conditional initialisation to align with the new metrics system.
Run hack/update-codegen.sh to update generated client code, deepcopy functions, and CRD manifests. This aligns the generated code with recent dependency updates, including changes to finalizer management and context usage in informers.
Update the expected checksums in Pipeline and Task unit tests to match the new values generated after the knative update: - pkg/apis/pipeline/v1 - pkg/apis/pipeline/v1beta1
This commit migrates the metrics for PipelineRuns and TaskRuns from
OpenCensus to OpenTelemetry.
The following changes are included:
- Updated the observability config to support OpenTelemetry.
- Migrated the implementation of PipelineRun and TaskRun metrics to use
the OpenTelemetry Go SDK.
- Updated the tests to work with the new OpenTelemetry-based
implementation.
pipelinerunmetricsandtaskrunmetricsto use OpenTelemetry instruments (histograms, counters, gauges) for creating and recording metrics.Introduced new OpenTelemetry configurations in
config/config-observability.yamlfor exporters and protocols..Rewrote the test suites for
pipelinerunmetricsandtaskrunmetricsto be compatible with the new OpenTelemetry-based implementation.Changes
fixes #8969
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes
/kind feature