Skip to content

fix: disable default features for prometheus dependency#1134

Merged
Sushisource merged 3 commits into
temporalio:masterfrom
maltere:malte/prometheus-optional
Mar 9, 2026
Merged

fix: disable default features for prometheus dependency#1134
Sushisource merged 3 commits into
temporalio:masterfrom
maltere:malte/prometheus-optional

Conversation

@maltere

@maltere maltere commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Hello team,

for internal use at Cloudflare we have applied this patch to the temporalio-common crate. I think this could be useful to add to the main repo as well.

What was changed

This patch disables default features for the prometheus dependency to avoid pulling in the protobuf transitive dependency.

Why?

The temporalio-common crate imports prometheus as dep with default features enabled since c781a61.

The prometheus crate by default includes protobuf, which temporalio-common does not use.

temporalio-common currently imports prometheus with default features
enabled. The prometheus crate includes protobuf by default, which
temporalio-common does not use. This disables default features for the
prometheus dependency to avoid pulling in the unnecessary protobuf
transitive dependency.
@maltere maltere requested a review from a team as a code owner March 6, 2026 14:28
@CLAassistant

CLAassistant commented Mar 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@janrueth janrueth left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@Sushisource Sushisource 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.

Thanks for this. I've updated your branch for you since it needed a fix we just merged for a test.

ps: Cute cat

@Sushisource Sushisource enabled auto-merge (squash) March 9, 2026 16:09
@Sushisource Sushisource merged commit 4d75612 into temporalio:master Mar 9, 2026
18 of 19 checks passed
@maltere maltere deleted the malte/prometheus-optional branch March 10, 2026 11:03
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.

4 participants