Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prometheus/client_python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.0
Choose a base ref
...
head repository: prometheus/client_python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 14 commits
  • 17 files changed
  • 6 contributors

Commits on May 28, 2025

  1. BugFix: Skip validating and parsing comment lines early (#1108) (#1109)

    Signed-off-by: Wissam Abu Ahmad <wabuahma@redhat.com>
    wissamir authored May 28, 2025
    Configuration menu
    Copy the full SHA
    938b73e View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Use License Expressions in pyproject.toml (#1111)

    With the release of PEP-639 the best practice for specifying the license
    is now to use a license expression in the license field and specify any
    license files in license-files rather than the table-based approach from
    PEP-621. Including the license in the classifiers is also no longer
    allowed when using PEP-639 and has been removed.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    f294cbb View commit details
    Browse the repository at this point in the history
  2. Release 0.22.1

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jun 2, 2025
    Configuration menu
    Copy the full SHA
    d24220a View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. UTF-8 Content Negotiation

    Part of #1013
    
    Signed-off-by: Owen Williams <owen.williams@grafana.com>
    ywwg committed Jun 12, 2025
    Configuration menu
    Copy the full SHA
    831ed02 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1102 from prometheus/owilliams/utf8-02

    UTF-8 Content Negotiation
    csmarchbanks authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    a6726a4 View commit details
    Browse the repository at this point in the history
  3. Fix including test data (#1113)

    Readd parts of `MANIFEST.in` responsible for including the test data
    in the source distribution.  Without that, setuptools includes only
    `.py` files from the test tree, leading to test failures.
    
    Fixes #1112
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    mgorny authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    6f19d31 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2025

  1. Add benchmark for text_string_to_metric_families

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    09b0826 View commit details
    Browse the repository at this point in the history
  2. When searching for label end start the search after the label start

    This saves ~10% in the benchmark.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    fb5f6d7 View commit details
    Browse the repository at this point in the history
  3. Enumerate over text when finding unquoted char

    Enumerating rather than using a while loop saves significant CPU when
    looking for an unquoted character. This ends up improving the benchmark
    ~20% on its own.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    119f1c2 View commit details
    Browse the repository at this point in the history
  4. Avoid unnecessary iterating across the same term

    Split the term into the label name and label value portions in one swoop
    rather than starting from the beginning to find an = character after
    already going through the full term. This saves ~5% on the benchmark.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    2a2ca52 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2025

  1. Add benchmark for text_string_to_metric_families (#1116)

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks authored Jul 8, 2025
    Configuration menu
    Copy the full SHA
    f915160 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1117 from prometheus/optimize-parser

    Optimize parser
    csmarchbanks authored Jul 8, 2025
    Configuration menu
    Copy the full SHA
    26da805 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2025

  1. Add support to write_to_textfile for custom tmpdir (#1115)

    * Add support to write_to_textfile for custom tmpdir
    
    While the try/except block does prevent most of the temp files from
    persisting, if there is a non catchable exception, those temp files
    continue to pollute the directory. Optionally set the temp
    directory would let us write to something like /tmp, so the target
    directory isn't polluted
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    
    * Modify write_to_textfile to ensure tmpdir is on same filesystem
    
    The tmpdir must be on the same filesystem to ensure an atomic operation
    takes place. If this is not enforced, there could be partial writes
    which can lead to partial/incorrect metrics being exported
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    
    ---------
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    aadityadhruv authored Jul 11, 2025
    Configuration menu
    Copy the full SHA
    7368028 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2025

  1. OM text exposition for NH (#1087)

    * Start implement OM text exposition for nh, add first no obs test
    * Correct template for nh sample spans, add test
    * Correct templating and appending for deltas, add longer spans test
    * Add tests for nh with labels, remove labels sorting
    * Break down logic classic vs nh samples, add tests for classic-native histograms cohabitation
    * Move classic sample logic back to where it belongs
    * Assign nh to value, correct nil values in tests, clean up white spaces
    * Add logic for exposing nh exemplars
    * Please linters
    * Assign nh_exemplars to exemplarstr
    * Add Any type to metric_family in OM exposition test
    * Change printing order of  nh spans and deltas according to OM 2.0 proposal
    * Shorten name of spans and deltas as per OM 2.0 proposal
    * Adapt nh with UTF-8 tests to new testing framework
    * Update prometheus_client/openmetrics/exposition.py
    * Update prometheus_client/openmetrics/exposition.py
    * Eliminate erroneous abbreviation for spans and deltas
    
    ---------
    
    Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
    Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com>
    Co-authored-by: Chris Marchbanks <csmarchbanks@gmail.com>
    vesari and csmarchbanks authored Aug 20, 2025
    Configuration menu
    Copy the full SHA
    f48aea4 View commit details
    Browse the repository at this point in the history
Loading