Skip to content

fix: disable default features for prometheus dependency#1134

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

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

Conversation

@maltere
Copy link
Copy Markdown
Contributor

@maltere maltere commented Mar 6, 2026

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
Copy link
Copy Markdown

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@janrueth janrueth left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

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

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