Skip to content

chore(deps): Updating otel/metric and fixing breaking changes#2569

Merged
vmihailenco merged 2 commits into
redis:masterfrom
ViBiOh:update_otel_metric
May 1, 2023
Merged

chore(deps): Updating otel/metric and fixing breaking changes#2569
vmihailenco merged 2 commits into
redis:masterfrom
ViBiOh:update_otel_metric

Conversation

@ViBiOh

@ViBiOh ViBiOh commented Apr 29, 2023

Copy link
Copy Markdown
Contributor

Related to the recent changes in the opentelemetry-go package https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.15.0, we cannot use directly "go.opentelemetry.io/otel/attribute".KeyValue but need to wrap them with the option pattern

Signed-off-by: Vincent Boutour <bob@vibioh.fr>
vmihailenco
vmihailenco previously approved these changes Apr 30, 2023
@vmihailenco

Copy link
Copy Markdown
Collaborator

@ViBiOh thanks, but looks like unit package is gone but still referenced in some packages...

@ViBiOh

ViBiOh commented Apr 30, 2023

Copy link
Copy Markdown
Contributor Author

@ViBiOh thanks, but looks like unit package is gone but still referenced in some packages...

Hi @vmihailenco , thanks for your reply. It seems that the issue is related to the uptrace-go library. I made a pull-request to update it, but it seems that otel/trace use the atomic.Pointer type, which is a go1.19 feature, so it won't compile in 1.18.

@vmihailenco

Copy link
Copy Markdown
Collaborator

@ViBiOh okay, I've just tagged uptrace-go v1.15. Could you update dependencies again and remove Go 1.18 from the build list?

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>
@vmihailenco vmihailenco merged commit e2fabdf into redis:master May 1, 2023
@vmihailenco

Copy link
Copy Markdown
Collaborator

@ViBiOh Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants