Skip to content
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

[PLATFORM-1399]: Update otel deps #83

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

cpiemontese
Copy link
Contributor

@cpiemontese cpiemontese commented Nov 28, 2023

https://prima-assicurazioni-spa.myjetbrains.com/youtrack/issue/PLATFORM-1399

In this PR

  • opentelemetry has been bumped to 0.21 and the rt-tokio feature has been removed
  • opentelemetry-otlp has been bumped to 0.14
  • opentelemetry_sdk has been introduced, with the rt-tokio feature
  • tracing-opentelemetry is now 0.22 to match the other otel deps
  • updates the flag rt-tokio-current-thread to map to ["opentelemetry_sdk/rt-tokio-current-thread"], since the tokio stuff has been moved to opentelemetry_sdk

@cpiemontese cpiemontese requested a review from a team as a code owner November 28, 2023 08:54
cottinisimone
cottinisimone previously approved these changes Nov 30, 2023
MaeIsBad
MaeIsBad previously approved these changes Nov 30, 2023
tracing = {version = "0.1", features = ["max_level_debug", "release_max_level_info"]}
tracing-log = {version = "0.2"}
tracing-opentelemetry = {version = "0.21", optional = true}
tracing-opentelemetry = {version = "0.22", optional = true}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly worried about this being 0.22, while the other otel libraries are 0.21, are you sure these are compatible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracing-opentelemetry 0.22 has "opentelemetry 0.21.0" in its deps (that is a bit nonsense)

Copy link
Contributor

@cottinisimone cottinisimone Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One attention point could be prima_bridge and tracing-actix-web that both still have tracing-opentelemetry 0.21.0 (that carries opentelemetry 0.20.0)

Edit: but they are in the dev-dependencies.. So not an issue i guess

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice this, thanks! tracing-actix-web we can easily be bumped, prima_bridge (bridge.rs?) cannot and I don't like having incompatible deps but it's used in an example...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I guess it's fine this way and we can think about updating bridge.rs otel deps later on

@cpiemontese cpiemontese merged commit ed7eec6 into master Nov 30, 2023
5 checks passed
@cpiemontese cpiemontese deleted the PLATFORM-1399/task/update-otel-deps branch November 30, 2023 13:06
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.

3 participants