Skip to content

chore: Upgrade io.opentelemetry version to 1.58.0#26644

Merged
imjalpreet merged 1 commit intoprestodb:masterfrom
sumi-mathew:upgrade_opentelemetry
Jan 29, 2026
Merged

chore: Upgrade io.opentelemetry version to 1.58.0#26644
imjalpreet merged 1 commit intoprestodb:masterfrom
sumi-mathew:upgrade_opentelemetry

Conversation

@sumi-mathew
Copy link
Copy Markdown
Contributor

@sumi-mathew sumi-mathew commented Nov 18, 2025

Description

Upgrade io.opentelemetry version to 1.58.0

Motivation and Context

Using a more recent version helps avoid potential vulnerabilities and ensures we aren't relying on outdated or unsupported code.

Impact

Test Plan

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.
  • If adding new dependencies, verified they have an OpenSSF Scorecard score of 5.0 or higher (or obtained explicit TSC approval for lower scores).

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== NO RELEASE NOTE ==

@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Nov 18, 2025
@sumi-mathew sumi-mathew force-pushed the upgrade_opentelemetry branch from 9e4c1ff to 6fb33bb Compare November 20, 2025 07:10
@sumi-mathew sumi-mathew changed the title Upgrade io.opentelemetry version to 1.56.0 chore: Upgrade io.opentelemetry version to 1.56.0 Nov 20, 2025
@sumi-mathew sumi-mathew marked this pull request as ready for review November 20, 2025 10:31
@sumi-mathew sumi-mathew requested a review from a team as a code owner November 20, 2025 10:31
@prestodb-ci prestodb-ci requested review from a team, BryanCutler and imjalpreet and removed request for a team November 20, 2025 10:31
BryanCutler
BryanCutler previously approved these changes Dec 1, 2025
Copy link
Copy Markdown
Contributor

@BryanCutler BryanCutler left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@imjalpreet imjalpreet left a comment

Choose a reason for hiding this comment

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

Thanks, @sumi-mathew.

I don't see any tests present in the open-telemetry plugin. It would be good to at least manually test out the plugin to ensure that everything is working since expected since we are moving from 1.19.0(released in 2022) to 1.56.0(released last month).

pom.xml Outdated
Comment on lines +2623 to +2627
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-semconv</artifactId>
<version>1.19.0-alpha</version>
<version>1.30.1-alpha</version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like this dependency has moved to https://mvnrepository.com/artifact/io.opentelemetry.semconv/opentelemetry-semconv, and there are more recent versions released.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing this PR. I have tested the changes and am attaching the test results.

Screenshot 2026-01-15 at 12 02 21 PM

@sumi-mathew
Copy link
Copy Markdown
Contributor Author

@imjalpreet Could you please re-review the PR

Copy link
Copy Markdown
Member

@agrawalreetika agrawalreetika left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. I have just one comment

pom.xml Outdated
<dep.fastutil.version>8.5.2</dep.fastutil.version>
<dep.datasketches-memory.version>2.2.0</dep.datasketches-memory.version>
<dep.datasketches-java.version>5.0.1</dep.datasketches-java.version>
<dep.io.opentelemetry.version>1.56.0</dep.io.opentelemetry.version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why don't we upgrade to the latest 1.58.0 version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

At the time of raising the PR, the latest version was 1.56.0. I’ve now updated it to 1.58.0.

@sumi-mathew sumi-mathew force-pushed the upgrade_opentelemetry branch from 81b04da to 15f2f3a Compare January 28, 2026 09:22
@sumi-mathew sumi-mathew changed the title chore: Upgrade io.opentelemetry version to 1.56.0 chore: Upgrade io.opentelemetry version to 1.58.0 Jan 28, 2026
agrawalreetika
agrawalreetika previously approved these changes Jan 28, 2026
Copy link
Copy Markdown
Member

@agrawalreetika agrawalreetika left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@imjalpreet imjalpreet left a comment

Choose a reason for hiding this comment

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

Thanks, @sumi-mathew.

LGTM % one small recommendation.

{
Resource resource = Resource.getDefault()
.merge(Resource.create(Attributes.of(ResourceAttributes.SERVICE_NAME, "presto")));
.merge(Resource.create(Attributes.of(AttributeKey.stringKey("service.name"), "presto")));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ResourceAttributes was deprecated and removed, but SERVICE_NAME was moved to ServiceAttributes: https://github.com/open-telemetry/semantic-conventions-java/blob/release/v1.37.0/semconv/src/main/java/io/opentelemetry/semconv/ServiceAttributes.java

Let's migrate to this rather than using a hardcoded value in Presto.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out. I’ve migrated to ServiceAttributes as suggested and removed the hardcoded value from Presto.

Copy link
Copy Markdown
Member

@imjalpreet imjalpreet left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, @sumi-mathew.

Copy link
Copy Markdown
Member

@hantangwangd hantangwangd left a comment

Choose a reason for hiding this comment

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

Thanks @sumi-mathew

@imjalpreet imjalpreet merged commit 1a67c8e into prestodb:master Jan 29, 2026
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:IBM PR from IBM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants