Skip to content

Comments

refactor: Split oteltrace layer to new crate#6969

Merged
Xuanwo merged 2 commits intomainfrom
extract-oteltrace-layer
Dec 11, 2025
Merged

refactor: Split oteltrace layer to new crate#6969
Xuanwo merged 2 commits intomainfrom
extract-oteltrace-layer

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

part of #6829

Closes #6944

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@koushiro koushiro requested a review from Xuanwo as a code owner December 11, 2025 08:11
Copilot AI review requested due to automatic review settings December 11, 2025 08:11
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 11, 2025
Copy link

Copilot AI left a comment

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 refactors the OpenTelemetry trace layer by extracting it from the opendal-core crate into a new standalone crate opendal-layer-oteltrace. This change is part of the broader effort to modularize OpenDAL's layer system (refs #6829, #6944).

Key Changes:

  • Extracted the oteltrace layer implementation into a new crate at core/layers/oteltrace
  • Updated import paths from internal crate::* to external opendal_core::* imports
  • Removed the layers-otel-trace feature and opentelemetry dependency from opendal-core

Reviewed changes

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

Show a summary per file
File Description
core/layers/oteltrace/Cargo.toml New package manifest defining the standalone oteltrace layer crate with appropriate dependencies
core/layers/oteltrace/src/lib.rs Updated imports to use opendal_core and revised documentation to reflect the new crate structure
core/src/lib.rs Added re-export of opendal-layer-oteltrace under the layers-otel-trace feature flag
core/core/src/layers/mod.rs Removed the internal oteltrace module declaration and export
core/core/Cargo.toml Removed the layers-otel-trace feature definition and opentelemetry dependency
core/Cargo.toml Updated layers-otel-trace feature to depend on the new opendal-layer-oteltrace crate
core/Cargo.lock Added lock file entries for the new opendal-layer-oteltrace dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 11, 2025
@Xuanwo Xuanwo merged commit ece2fb9 into main Dec 11, 2025
389 checks passed
@Xuanwo Xuanwo deleted the extract-oteltrace-layer branch December 11, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Layer: oteltrace

2 participants