Skip to content

Document that Prometheus exporter does not work with multiprocessing #4711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bastbu
Copy link

@bastbu bastbu commented Aug 5, 2025

Description

This PR adds a note to the documentation of the Prometheus exporter to make it clear that the exporter does not work when using multiprocessing.

Applies to #3747

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

No tests - documentation update.

Does This PR Require a Contrib Repo Change?

  • Yes.
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@bastbu bastbu marked this pull request as ready for review August 5, 2025 13:02
@bastbu bastbu requested a review from a team as a code owner August 5, 2025 13:02
@tammy-baylis-swi
Copy link
Contributor

Thank you for this PR!

Could the warning also be added to the docs-level rst?: https://github.com/open-telemetry/opentelemetry-python/blob/cf31a6967aac76663b4cca023b5d760fd6eb5355/docs/exporter/prometheus/prometheus.rst

@bastbu
Copy link
Author

bastbu commented Aug 7, 2025

Thank you for this PR!

Could the warning also be added to the docs-level rst?: https://github.com/open-telemetry/opentelemetry-python/blob/cf31a6967aac76663b4cca023b5d760fd6eb5355/docs/exporter/prometheus/prometheus.rst

Sure, added it in both places now.

Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi 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 that, I think this is good. The maintainers will be the next to look at this.

Limitations
-----------------

* No multiprocessing support: The Prometheus exporter is not designed to operate in multiprocessing environments.
Copy link
Member

Choose a reason for hiding this comment

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

Can we point to the tracking issue? #3747

Copy link
Author

Choose a reason for hiding this comment

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

Done with b1e15e8.

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.

3 participants