Skip to content

HBASE-29349 Upgrade to opentelemetry-semconv 1.32.0 #7016

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NihalJain
Copy link
Contributor

@NihalJain NihalJain commented May 22, 2025

We moved to opentelemetry latest packages with HBASE-29349  but deliberately chose to not jump to latest for semconv as it introduces few deprecations, which if removed can cause incompatibilities. With this task we want to see best approach to move to latest semconv and how to deal with these deprecations.

SemanticAttributes.java has been removed and broken down into following with semantic-conventions-java#v1.30.0-rc.1

Also there has been a few deprecations, for example refer db-migration.md

  • db.system has been deprecated and renamed to db.system.name
  • db.operation has been deprecated and renamed to db.operation.name
  • and so on

But with first draft of this change we continue to use the deprecated names.

If we decide on following the migration guide we can remove and handle the change as suggested in the guide or simply change them and break the compatibility.

Docs:

* Conventions</a>.
*/
@InterfaceAudience.Private
public final class HBaseSemanticAttributes {
public static final AttributeKey<String> DB_SYSTEM = SemanticAttributes.DB_SYSTEM;
public static final String DB_SYSTEM_VALUE = SemanticAttributes.DbSystemValues.HBASE;
public static final AttributeKey<String> DB_SYSTEM = DbIncubatingAttributes.DB_SYSTEM;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most of these have been deprecated, we need to see whether we want to continue using these

public static final String EXCEPTION_EVENT_NAME = SemanticAttributes.EXCEPTION_EVENT_NAME;
public static final AttributeKey<String> EXCEPTION_TYPE = ExceptionAttributes.EXCEPTION_TYPE;
public static final AttributeKey<String> EXCEPTION_MESSAGE = ExceptionAttributes.EXCEPTION_MESSAGE;
public static final String EXCEPTION_EVENT_NAME = "exception";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This key has been removed with no replacement

@NihalJain NihalJain requested a review from ndimiduk May 22, 2025 11:33
@NihalJain NihalJain force-pushed the telemetry_non_alpha branch from 21cf6d5 to 3b16293 Compare May 22, 2025 11:39
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 27s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ master Compile Tests _
+0 🆗 mvndep 0m 17s Maven dependency ordering for branch
+1 💚 mvninstall 3m 3s master passed
+1 💚 compile 7m 51s master passed
+1 💚 checkstyle 1m 10s master passed
+1 💚 spotbugs 8m 14s master passed
+1 💚 spotless 0m 46s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 2m 55s the patch passed
+1 💚 compile 7m 54s the patch passed
+1 💚 javac 7m 54s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 1m 15s /results-checkstyle-root.txt root: The patch generated 4 new + 7 unchanged - 0 fixed = 11 total (was 7)
+1 💚 xmllint 0m 0s No new issues.
+1 💚 spotbugs 8m 48s the patch passed
+1 💚 hadoopcheck 11m 38s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
-1 ❌ spotless 0m 13s patch has 43 errors when running spotless:check, run spotless:apply to fix.
_ Other Tests _
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
62m 51s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7016/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7016
Optional Tests dupname asflicense javac codespell detsecrets xmllint hadoopcheck spotless compile spotbugs checkstyle hbaseanti
uname Linux 0296e70d7dd4 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 3b16293
Default Java Eclipse Adoptium-17.0.11+9
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7016/2/artifact/yetus-general-check/output/patch-spotless.txt
Max. process+thread count 192 (vs. ulimit of 30000)
modules C: hbase-common hbase-mapreduce . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7016/2/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3 xmllint=20913
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

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