Skip to content

build: make otel opt-in in sdk-core#1154

Merged
chris-olszewski merged 4 commits into
temporalio:masterfrom
sachinsharma3191:issue-687-otel-opt-in
Mar 18, 2026
Merged

build: make otel opt-in in sdk-core#1154
chris-olszewski merged 4 commits into
temporalio:masterfrom
sachinsharma3191:issue-687-otel-opt-in

Conversation

@sachinsharma3191

Copy link
Copy Markdown
Contributor

Disable sdk-core's default otel feature and wire otel explicitly where needed to reduce transitive dependencies for non-otel consumers.

Disable sdk-core's default otel feature and wire otel explicitly where needed to reduce transitive dependencies for non-otel consumers.
@sachinsharma3191 sachinsharma3191 requested a review from a team as a code owner March 15, 2026 17:04

@chris-olszewski chris-olszewski left a comment

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.

Overall looks good, just 2 things to get it in working order.

Comment thread crates/sdk-core/Cargo.toml Outdated
Comment on lines +18 to +19
# OpenTelemetry metrics export via OTLP. Disabled by default to reduce build times and
# dependency count for users who use Prometheus or custom meters only.

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.

I don't feel the comment is especially useful

Suggested change
# OpenTelemetry metrics export via OTLP. Disabled by default to reduce build times and
# dependency count for users who use Prometheus or custom meters only.

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.

Sure Will Implement the suggested changes

Comment thread .cargo/config.toml
Comment on lines +15 to +16
"--features",
"temporalio-sdk-core/otel",

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.

We need to mirror this change in crates/sdk-core/tests/runner.rs

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.

I have added the changes in the file

sachinsharma3191 and others added 2 commits March 17, 2026 18:53
Remove the nonessential feature comment and mirror the otel feature in the integration test runner so it matches the cargo alias behavior.
@chris-olszewski chris-olszewski merged commit db65dd9 into temporalio:master Mar 18, 2026
33 of 34 checks passed
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