Skip to content

Change GlobUtil, IncludeExcludePredicate to use case sensitive matching consistently#8152

Merged
jack-berg merged 4 commits into
open-telemetry:mainfrom
jack-berg:case-sensitive-matching
Mar 6, 2026
Merged

Change GlobUtil, IncludeExcludePredicate to use case sensitive matching consistently#8152
jack-berg merged 4 commits into
open-telemetry:mainfrom
jack-berg:case-sensitive-matching

Conversation

@jack-berg

Copy link
Copy Markdown
Member

Resolves #8137.

@jack-berg
jack-berg requested a review from a team as a code owner March 6, 2026 18:24
@codecov

codecov Bot commented Mar 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.29%. Comparing base (bc73a5e) to head (5cecf3c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8152   +/-   ##
=========================================
  Coverage     90.29%   90.29%           
+ Complexity     7650     7649    -1     
=========================================
  Files           843      843           
  Lines         23059    23059           
  Branches       2309     2309           
=========================================
+ Hits          20821    20822    +1     
+ Misses         1519     1518    -1     
  Partials        719      719           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@breedx-splk breedx-splk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me

@trask

trask commented Mar 6, 2026

Copy link
Copy Markdown
Member

do we need also to include

// Exact match, ignoring case
return globPattern.equalsIgnoreCase(s);

@jack-berg

Copy link
Copy Markdown
Member Author

do we need also to include

Pushed a commit to extend to GlobUtil, but this definitely widens the scope of impact, since metric view name selection is impacted.

I still characterize this as a bug fix, since as GlobUtilTest updates show, the pattern matching portion of was still case sensitive despite the exact match being case insensitive. One way or the other, we have to make it consistent, and I see no language in the spec to suggest that view metric name matching, glob patterns, or matching in general should be case insensitive.

@jack-berg jack-berg changed the title Change IncludeExcludePredicate to use case sensitive matching consistently Change GlobUtil, IncludeExcludePredicate to use case sensitive matching consistently Mar 6, 2026
@trask

trask commented Mar 6, 2026

Copy link
Copy Markdown
Member

characterize this as a bug fix

👍

@jack-berg
jack-berg merged commit c1820bf into open-telemetry:main Mar 6, 2026
27 checks passed
jack-berg added a commit that referenced this pull request Mar 6, 2026
github-actions Bot pushed a commit that referenced this pull request Mar 6, 2026
eamonn-kearns-ibm added a commit to eamonn-kearns-ibm/opentelemetry-java that referenced this pull request Apr 1, 2026
* [release/v1.60.x] Prepare release 1.60.0 (open-telemetry#8151)

Co-authored-by: otelbot <[email protected]>

* Add changelog entry for open-telemetry#8152 to 1.60.x release branch (open-telemetry#8154)

* [release/v1.60.x] Change GlobUtil, IncludeExcludePredicate to use case sensitive matching consistently (open-telemetry#8155)

Co-authored-by: Jack Berg <[email protected]>

* [release/v1.60.x] Fix warning always emitted (open-telemetry#8158)

Co-authored-by: Trask Stalnaker <[email protected]>

* Prepare changelog for 1.60.1 (open-telemetry#8160)

* [release/v1.60.x] Prepare release 1.60.1 (open-telemetry#8161)

Co-authored-by: otelbot <[email protected]>

* initial commit

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

---------

Co-authored-by: otelbot[bot] <197425009+otelbot[bot]@users.noreply.github.com>
Co-authored-by: otelbot <[email protected]>
Co-authored-by: Jack Berg <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
eamonn-kearns-ibm added a commit to eamonn-kearns-ibm/opentelemetry-java that referenced this pull request Apr 2, 2026
* [release/v1.60.x] Prepare release 1.60.0 (open-telemetry#8151)

Co-authored-by: otelbot <[email protected]>

* Add changelog entry for open-telemetry#8152 to 1.60.x release branch (open-telemetry#8154)

* [release/v1.60.x] Change GlobUtil, IncludeExcludePredicate to use case sensitive matching consistently (open-telemetry#8155)

Co-authored-by: Jack Berg <[email protected]>

* [release/v1.60.x] Fix warning always emitted (open-telemetry#8158)

Co-authored-by: Trask Stalnaker <[email protected]>

* Prepare changelog for 1.60.1 (open-telemetry#8160)

* [release/v1.60.x] Prepare release 1.60.1 (open-telemetry#8161)

Co-authored-by: otelbot <[email protected]>

* initial commit

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

---------

Co-authored-by: otelbot[bot] <197425009+otelbot[bot]@users.noreply.github.com>
Co-authored-by: otelbot <[email protected]>
Co-authored-by: Jack Berg <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
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.

IncludeExcludePredicate case sensitivity inconsistency

3 participants