Commit baaf5e1
committed
refactor: migrate from OpenCensus to OpenTelemetry
Replace OpenCensus stats, views, and tags with OpenTelemetry meter,
counters, and attributes for all pipeline run metrics. Update method
signatures to accept context.Context and rewrite tests to use the
OTel SDK ManualReader. Remove the now-unnecessary metricstest helper
package and all OpenCensus vendor dependencies.
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>1 parent de28dca commit baaf5e1
File tree
904 files changed
+102473
-91368
lines changed- cmd/pipelines-as-code-controller
- config
- pkg
- pipelinerunmetrics
- provider
- bitbucketdatacenter
- gitea
- github
- gitlab
- providermetrics
- reconciler
- test/metricstest
- vendor
- contrib.go.opencensus.io/exporter
- ocagent
- prometheus
- zipkin
- github.com
- cenkalti/backoff/v5
- census-instrumentation/opencensus-proto
- gen-go
- agent
- common/v1
- metrics/v1
- trace/v1
- metrics/v1
- resource/v1
- trace/v1
- cloudevents/sdk-go
- observability
- opencensus/v2
- client
- http
- opentelemetry/v2
- client
- http
- v2/extensions
- felixge/httpsnoop
- go-logr
- logr
- funcr
- slogr
- stdr
- zapr
- golang
- groupcache
- lru
- protobuf
- ptypes/timestamp
- google/cel-go
- cel
- checker
- common
- ast
- debug
- env
- types
- interpreter
- parser
- openzipkin/zipkin-go
- idgenerator
- model
- propagation
- reporter
- http
- prometheus
- common/promslog
- otlptranslator
- statsd_exporter
- pkg/mapper
- fsm
- stoewer/go-strcase
- tektoncd/pipeline/pkg
- apis
- config
- pipeline
- pod
- v1alpha1
- v1beta1
- v1
- client
- clientset/versioned
- fake
- typed/pipeline
- v1alpha1
- v1beta1
- v1
- informers/externalversions/pipeline
- v1alpha1
- v1beta1
- v1
- injection/reconciler/pipeline/v1/pipelinerun
- go.opencensus.io
- internal
- tagencoding
- metric
- metricdata
- metricexport
- metricproducer
- plugin
- ocgrpc
- ochttp
- propagation
- b3
- tracecontext
- resource
- stats
- internal
- view
- tag
- trace
- internal
- propagation
- tracestate
- go.opentelemetry.io
- auto/sdk
- internal/telemetry
- contrib/instrumentation
- net/http/otelhttp
- internal
- request
- semconv
- runtime
- internal
- deprecatedruntime
- x
- otel
- attribute
- internal
- xxhash
- baggage
- codes
- exporters
- otlp
- otlpmetric
- otlpmetricgrpc
- internal
- envconfig
- oconf
- retry
- transform
- otlpmetrichttp
- internal
- envconfig
- oconf
- retry
- transform
- otlptrace
- internal/tracetransform
- otlptracegrpc
- internal
- counter
- envconfig
- observ
- otlpconfig
- retry
- x
- otlptracehttp
- internal
- counter
- envconfig
- observ
- otlpconfig
- retry
- x
- prometheus
- internal
- counter
- observ
- x
- stdout/stdouttrace
- internal
- counter
- observ
- x
- internal
- baggage
- global
- metric
- embedded
- noop
- propagation
- sdk
- instrumentation
- internal/x
- metric
- exemplar
- internal
- aggregate
- observ
- reservoir
- x
- metricdata
- resource
- trace
- internal
- env
- observ
- tracetest
- semconv
- internal
- v1.37.0
- goconv
- httpconv
- otelconv
- v1.4.0
- trace
- embedded
- internal/telemetry
- noop
- proto/otlp
- collector
- metrics/v1
- trace/v1
- common/v1
- metrics/v1
- resource/v1
- trace/v1
- golang.org/x
- net
- html
- http2
- internal/httpsfv
- sys
- cpu
- unix
- windows
- registry
- text
- cases
- secure/bidirule
- unicode
- bidi
- norm
- width
- google.golang.org
- api
- support/bundler
- genproto/googleapis/rpc/errdetails
- grpc/encoding/gzip
- knative.dev
- eventing/pkg
- adapter/v2
- util/crstatusevent
- apis
- duck/v1
- eventing/v1alpha1
- feature
- messaging/v1
- sources
- v1
- auth
- eventingtls
- metrics
- source
- observability
- client
- configmap
- otel
- utils
- pkg
- apis/duck
- v1
- configmap
- informer
- parser
- controller
- kmp
- metrics
- metricskey
- metricstest
- network
- observability
- attributekey
- configmap
- metrics
- k8s
- prometheus
- resource
- runtime
- k8s
- semconv
- httpconv
- tracing
- profiling
- reconciler/testing
- resolver
- signals
- system
- tracing
- config
- propagation
- tracecontextb3
- version
- webhook
- certificates/resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
904 files changed
+102473
-91368
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | | - | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | | - | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
53 | 56 | | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
78 | 99 | | |
79 | 100 | | |
80 | 101 | | |
| |||
86 | 107 | | |
87 | 108 | | |
88 | 109 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
95 | 113 | | |
96 | 114 | | |
97 | 115 | | |
98 | | - | |
99 | 116 | | |
100 | | - | |
101 | 117 | | |
102 | 118 | | |
103 | 119 | | |
| |||
108 | 124 | | |
109 | 125 | | |
110 | 126 | | |
111 | | - | |
112 | | - | |
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
| |||
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
129 | | - | |
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
135 | | - | |
136 | 148 | | |
137 | 149 | | |
138 | | - | |
139 | 150 | | |
140 | 151 | | |
141 | 152 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
146 | 157 | | |
147 | 158 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 159 | + | |
| 160 | + | |
151 | 161 | | |
152 | 162 | | |
153 | 163 | | |
| |||
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| |||
0 commit comments