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/common
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.62.0
Choose a base ref
...
head repository: prometheus/common
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.63.0
Choose a head ref
  • 20 commits
  • 24 files changed
  • 12 contributors

Commits on Jan 18, 2025

  1. making this map a public variable (#741)

    Signed-off-by: dongjiang <dongjiang1989@126.com>
    dongjiang1989 authored Jan 18, 2025
    Copy the full SHA
    d5631d2 View commit details
  2. setup ossf scorecard and codeql workflows (#564)

    * setup ossf scorecard and codql workflows
    
    
    ---------
    
    Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
    Co-authored-by: Ben Kochie <superq@gmail.com>
    mmorel-35 and SuperQ authored Jan 18, 2025
    Copy the full SHA
    1cc5297 View commit details

Commits on Jan 20, 2025

  1. feat(promslog): implement reserved keys, rename duplicates (#746)

    * feat(promslog): implement reserved keys, rename duplicates
    
    This commit adds support for "reserved" keys, where upon detecting a
    duplicate log attribute key, it will rename the key to prevent
    collisions/issues with core slog attribute keys in use.
    
    The reserved keys are:
    - `level`
    - `source` (for standard slog style)
    - `caller` (for legacy go-kit style)
    - `time`   (for standard slog style)
    - `ts`     (for legacy go-kit style)
    
    By supporting reserved keys, we allow users of the library to use these
    keys for their own supplemental log attributes.
    
    Fixes: #745
    
    Example test output:
    ```
    === RUN   TestReservedKeys/slog_log_style
    time=2025-01-13T18:32:46.508Z level=INFO source=slog_test.go:212 msg="reserved keys test for slog_log_style" logged_level="surprise! I'm a string" logged_source="surprise! I'm a string" logged_time="surprise! I'm a string"
    
    === RUN   TestReservedKeys/go-kit_log_style
    ts=2025-01-13T18:32:46.508Z level=info caller=slog_test.go:212 msg="reserved keys test for go-kit_log_style" logged_level="surprise! I'm a string" logged_caller="surprise! I'm a string" logged_ts="surprise! I'm a string"
    ```
    
    Note: this implementation only technically removes duplicates of our
    core reserved keys. If a user adds multiple instances of a reserved key,
    the rest get renamed to `logged_$key`, which means there could be
    duplicate attributes with `logged_$key`. This is mostly to simplify
    implementation so we don't need to bother reference counting in the
    replace attr function to do things like `logged_$key1`, `logged_$key2`,
    etc.
    
    
    ---------
    
    Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
    tjhop authored Jan 20, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    df14882 View commit details
  2. Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 (#750)

    Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.24.0 to 0.25.0.
    - [Commits](golang/oauth2@v0.24.0...v0.25.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/oauth2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 20, 2025
    Copy the full SHA
    1b10c09 View commit details
  3. Bump golang.org/x/net from 0.33.0 to 0.34.0 (#749)

    Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.34.0.
    - [Commits](golang/net@v0.33.0...v0.34.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/net
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 20, 2025
    Copy the full SHA
    5b0d088 View commit details
  4. Bump google.golang.org/protobuf from 1.36.1 to 1.36.3 (#751)

    Bumps google.golang.org/protobuf from 1.36.1 to 1.36.3.
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/protobuf
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 20, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7684929 View commit details

Commits on Jan 28, 2025

  1. Fix typo 'the an'

    Signed-off-by: Peter Nguyen <petern0408@gmail.com>
    petern48 authored Jan 28, 2025
    Copy the full SHA
    9fedd39 View commit details

Commits on Feb 3, 2025

  1. promslog: Make AllowedLevel concurrency safe. (#754)

    * promslog: Make AllowedLevel concurrency safe.
    
    Needed for prometheus/prometheus#10352
    
    Also I renamed AllowedLevel and AllowedFormat to Level and Format.
    Default level (and String()) is also now 'info' not empty.
    
    It's a breaking change, but I suspect nobody was using those constructs directly, WDYT?
    
    Signed-off-by: bwplotka <bwplotka@gmail.com>
    
    * info is by default, so no need for the set in New
    
    Signed-off-by: bwplotka <bwplotka@gmail.com>
    
    ---------
    
    Signed-off-by: bwplotka <bwplotka@gmail.com>
    bwplotka authored Feb 3, 2025
    Copy the full SHA
    a784287 View commit details

Commits on Feb 5, 2025

  1. Merge pull request #752 from petern48/patch-2

    Fix typo 'the an'
    beorn7 authored Feb 5, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    84a26db View commit details

Commits on Feb 9, 2025

  1. Update common Prometheus files (#757)

    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    prombot authored Feb 9, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cc17dab View commit details

Commits on Feb 19, 2025

  1. build(deps): bump google.golang.org/protobuf from 1.36.3 to 1.36.4 (#756

    )
    
    Bumps google.golang.org/protobuf from 1.36.3 to 1.36.4.
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/protobuf
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 19, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ca40aa0 View commit details

Commits on Mar 2, 2025

  1. build(deps): bump google.golang.org/protobuf from 1.36.4 to 1.36.5 (#761

    )
    
    Bumps google.golang.org/protobuf from 1.36.4 to 1.36.5.
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/protobuf
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 2, 2025
    Copy the full SHA
    0db99da View commit details
  2. build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#763)

    Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0.
    - [Release notes](https://github.com/google/go-cmp/releases)
    - [Commits](google/go-cmp@v0.6.0...v0.7.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/google/go-cmp
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 2, 2025
    Copy the full SHA
    b516f6d View commit details
  3. build(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 (#762)

    Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.35.0.
    - [Commits](golang/net@v0.34.0...v0.35.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/net
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 2, 2025
    Copy the full SHA
    56f6f38 View commit details

Commits on Mar 4, 2025

  1. model: Clarify the purpose of model.NameValidationScheme (#765)

    There is a lot of confusion around this global variable.
    Clarify that it is meant to indicate that a project is aware of UTF-8 support, and that those projects should have their own flags to control validation mode.
    
    Signed-off-by: Owen Williams <owen.williams@grafana.com>
    ywwg authored Mar 4, 2025
    Copy the full SHA
    6b9636c View commit details

Commits on Mar 7, 2025

  1. Fix spelling mistake in godoc (#766)

    This commit fixes a spelling mistake in the godoc for ResolvedAt.
    
    Signed-off-by: George Robinson <george.robinson@grafana.com>
    grobinson-grafana authored Mar 7, 2025
    Copy the full SHA
    0decf1f View commit details

Commits on Mar 8, 2025

  1. Update common Prometheus files (#767)

    Signed-off-by: prombot <prometheus-team@googlegroups.com>
    prombot authored Mar 8, 2025
    Copy the full SHA
    a9cc7f7 View commit details

Commits on Mar 12, 2025

  1. otlptranslator: Add dependency free package that translator OTLP data…

    … into Prometheus metric/label names
    
    Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
    ArthurSens committed Mar 12, 2025
    Copy the full SHA
    227989c View commit details

Commits on Mar 13, 2025

  1. Add test case for BuildCompliantMetricName with a metric that starts …

    …with a digit and addMetricSuffixes is true
    
    Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
    ArthurSens committed Mar 13, 2025
    Copy the full SHA
    b35ad99 View commit details
  2. Merge pull request #768 from prometheus/otlp-translator

    otlptranslator: Add dependency free package that translates OTLP data into Prometheus metric/label names
    ArthurSens authored Mar 13, 2025
    Copy the full SHA
    cf3c56f View commit details
Loading