Skip to content

chore:upgrade optel package - #2898

Merged
AlexStocks merged 8 commits into
apache:developfrom
No-SilverBullet:chore/otel-upgrade
May 28, 2025
Merged

chore:upgrade optel package #2898
AlexStocks merged 8 commits into
apache:developfrom
No-SilverBullet:chore/otel-upgrade

Conversation

@No-SilverBullet

Copy link
Copy Markdown
Member

1.upgrade otel package to v1.21.0
2.format import style

related issues:
#2889
#2733

@sonarqubecloud

Copy link
Copy Markdown

@marsevilspirit

Copy link
Copy Markdown
Member

Why choose v1.21.0 instead of a higher version, with the current highest version being v1.36.0?

@AlexStocks
AlexStocks requested a review from Copilot May 27, 2025 14:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the OpenTelemetry (otel) packages to v1.21.0 and applies consistent import formatting across several modules.

  • Bump go.opentelemetry.io/otel and related exporters to v1.21.0, along with other dependency upgrades in go.mod.
  • Standardize import grouping and blank-line formatting in various .go files.
  • Remove an inline comment explaining the side-effect import of logrus in config_loader.go.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/dubbogo-cli/cmd/show.go Added blank line for import grouping
protocol/triple/triple_protocol/server.go Consolidated imports and adjusted blank lines
protocol/triple/server.go Reordered imports and added blank-line spacing
protocol/dubbo/impl/hessian_test.go Added blank line between imports
logger/core/zap/zap.go Added blank line for grouping imports
logger/core/logrus/logrus.go Added blank line for grouping imports
logger/base.go Added blank line for grouping imports
go.mod Upgraded various dependencies (otel, grpc, etc.)
config/config_loader.go Removed comment explaining side-effect import
Comments suppressed due to low confidence (1)

config/config_loader.go:32

  • Re-add a comment explaining that the logrus import is only for its init-side effects; otherwise future maintainers may remove this import unintentionally.
_ "dubbo.apache.org/dubbo-go/v3/logger/core/logrus"

@No-SilverBullet

Copy link
Copy Markdown
Member Author

Why choose v1.21.0 instead of a higher version, with the current highest version being v1.36.0?

1.21.0 version can eliminate this go.opentelemetry.io/otel/exporters/otlp/internal, i think there is no need to upgrate to the newest version.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants