Commit 2b00516
Replace OpenCensus with OpenTelemetry for metrics
- Migrate pkg/util/metrics/helpers.go from OpenCensus tags to OTel attributes
- Migrate pkg/util/metrics/metric_int64.go to use OTel metric SDK
- Migrate pkg/util/metrics/metric_float64.go to use OTel metric SDK
- Add pkg/util/metrics/provider.go for global MeterProvider management
- Update prometheusexporter to use OTel Prometheus exporter
- Update stackdriver exporter to use GCP OTel metric exporter
- Remove OpenCensus dependencies from go.mod
- Add OpenTelemetry SDK and exporter dependencies
Co-authored-by: MartinForReal <[email protected]>1 parent f2ce5b9 commit 2b00516
File tree
558 files changed
+16214
-126851
lines changed- pkg
- exporters
- prometheusexporter
- stackdriver
- util/metrics
- vendor
- cloud.google.com/go
- auth/httptransport
- trace
- apiv2
- tracepb
- internal
- contrib.go.opencensus.io/exporter
- prometheus
- stackdriver
- monitoredresource
- aws
- gcp
- github.com
- GoogleCloudPlatform/opentelemetry-operations-go
- exporter/metric
- internal/resourcemapping
- aws/aws-sdk-go
- aws
- awserr
- awsutil
- client
- metadata
- corehandlers
- credentials
- ec2rolecreds
- endpointcreds
- processcreds
- ssocreds
- stscreds
- csm
- defaults
- ec2metadata
- endpoints
- request
- session
- signer/v4
- internal
- context
- ini
- sdkio
- sdkmath
- sdkrand
- sdkuri
- strings
- sync/singleflight
- private/protocol
- jsonrpc
- json/jsonutil
- query
- queryutil
- restjson
- rest
- xml/xmlutil
- service
- sso
- ssoiface
- sts
- stsiface
- census-instrumentation/opencensus-proto
- gen-go
- agent/common/v1
- metrics/v1
- resource/v1
- felixge/httpsnoop
- go-kit/log
- level
- go-logfmt/logfmt
- golang
- groupcache
- lru
- protobuf
- ptypes
- any
- timestamp
- wrappers
- grafana/regexp
- jmespath/go-jmespath
- prometheus
- otlptranslator
- prometheus
- model/value
- statsd_exporter
- pkg
- level
- mapper
- fsm
- go.opencensus.io
- internal
- tagencoding
- metric
- metricdata
- metricexport
- metricproducer
- plugin/ochttp
- propagation/b3
- resource
- resourcekeys
- stats
- internal
- view
- tag
- trace
- internal
- propagation
- tracestate
- go.opentelemetry.io
- contrib/instrumentation
- google.golang.org/grpc/otelgrpc
- internal
- net/http/otelhttp
- internal
- request
- semconvutil
- semconv
- otel
- exporters/prometheus
- sdk
- instrumentation
- internal/x
- metric
- exemplar
- internal
- aggregate
- x
- metricdata
- resource
- semconv
- v1.20.0
- v1.30.0
- v1.37.0/rpcconv
- google.golang.org
- api
- googleapi/transport
- support/bundler
- transport/http
- genproto/googleapis
- devtools/cloudtrace/v2
- monitoring/v3
- grpc/encoding/gzip
- gopkg.in/yaml.v2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
558 files changed
+16214
-126851
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | | - | |
35 | | - | |
| 38 | + | |
36 | 39 | | |
37 | | - | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 67 | + | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 73 | + | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
| |||
89 | 81 | | |
90 | 82 | | |
91 | 83 | | |
92 | | - | |
| 84 | + | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
| |||
98 | 90 | | |
99 | 91 | | |
100 | 92 | | |
101 | | - | |
102 | 93 | | |
103 | 94 | | |
104 | 95 | | |
| |||
0 commit comments