Warnar Boekkooi
8ca21d2600
chore(redisotel): use metric.WithAttributeSet to avoid copy ( #3552 )
...
In order to improve performance replace `WithAttributes` with `WithAttributeSet`.
This avoids the slice allocation and copy that is done in `WithAttributes`.
For more information see https://github.com/open-telemetry/opentelemetry-go/blob/v1.38.0/metric/instrument.go#L357-L376
2025-10-21 14:56:06 +03:00
Matthew Hooker
19fdc488a7
chore(otel): register wait metrics ( #3499 )
2025-09-03 13:12:41 +03:00
Matthew Hooker
f0058063a9
feat(otel): Add wait metrics to otel ( #3493 )
...
* Add wait metrics to otel
* add unit
2025-09-02 15:48:18 +03:00
Hristo Temelski
6220024a38
chore(otel): Update otel metrics URL ( #3474 )
2025-08-12 14:07:17 +03:00
Cattī Crūdēlēs
4767d9dfaf
fix(redisotel): fix buggy append in reportPoolStats ( #3122 )
...
The current append twice to `conf.attrs` approach in `reportPoolStats` may result in unexpected idleAttrs,
due to `append` [can mutate](https://github.com/golang/go/issues/29115#issuecomment-444669036 ) the underlying array of the original slice,
as demonstrated at <https://go.dev/play/p/jwRMofH91eQ?v=goprev >.
Also, I replaced `metric.WithAttributes` in `reportPoolStats` with `metric.WithAttributeSet`,
since `WithAttributes` is just `WithAttributeSet` with some extra works that are not needed here,
see <https://pkg.go.dev/go.opentelemetry.io/otel/metric@v1.22.0#WithAttributes >.
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com >
2025-08-05 15:15:34 +03:00
Antonio Mindov
23a87a2137
feat(otel): add closing support to otel metrics instrumentation ( #3444 )
...
closes #3424
2025-07-24 12:48:34 +03:00
fengyun.rui
4cedb5c037
feat: add more stats for otel ( #2930 )
...
Signed-off-by: rfyiamcool <rfyiamcool@163.com >
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com >
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com >
2025-05-07 11:14:48 +03:00
taytzehao
7acc0cd254
useTime duration calculation ( #2651 )
...
Co-authored-by: tzehaoo <tzehao@intnt.ai >
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com >
2023-09-20 14:08:08 +03:00
Tiago Peczenyj
e8ad794e96
Format code and fix go vet ( #2696 )
...
* run go fix ./...
Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com >
* run make fmt
Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com >
* fix go vet ./... issues
* Update README.md
Reorder imports with the rules defined in the Makefile
as if we run `make fmt`
* run gofumpt -w .
* update Makefile to use gofumpt instead gofmt
* increment makefile
* format test
* format tests
Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com >
---------
Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com >
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com >
2023-09-20 14:03:44 +03:00
Mikhail Mazurskiy
9a9423d3df
chore(deps): Update otel/metric to stable API ( #2607 )
2023-05-24 12:07:43 +03:00
Vincent Boutour
e2fabdf157
chore(deps): Updating otel/metric and fixing breaking changes ( #2569 )
...
* chore(deps): Updating otel/metric and fixing breaking changes
Signed-off-by: Vincent Boutour <bob@vibioh.fr >
* ci: Removing go1.18 and updating example/otel to latest version
Latest otel version use atomic.Pointer which is a go1.19 feature, so we have to drop support for the go 1.18
Signed-off-by: Vincent Boutour <bob@vibioh.fr >
---------
Signed-off-by: Vincent Boutour <bob@vibioh.fr >
2023-05-01 11:33:30 +03:00
Ngọc Long
e29e42cde2
feat: upgrade OpenTelemetry, use the new metrics API. ( #2410 )
2023-02-01 16:04:33 +08:00
Vladimir Mihailenco
97b491aace
chore: update import path
2023-01-23 08:48:54 +02:00
Scott
7c4b924350
fix(redisotel): correct metrics.DialHook attrs ( #2331 )
2022-12-23 20:40:07 +08:00
Vladimir Mihailenco
bbff4dd5dc
chore: fix metrics in redisotel
2022-11-18 15:32:17 +02:00
Vladimir Mihailenco
44af3c09a7
chore: add more metrics to redisotel
2022-11-17 16:24:16 +02:00
Vladimir Mihailenco
0dff3d1461
feat: add OpenTelemetry metrics instrumentation
2022-10-12 11:09:41 +03:00