opentelemetry-sdk: add experimental composable rule based sampler by xrmx · Pull Request #4882 · open-telemetry/opentelemetry-python
xrmx
mentioned this pull request
xrmx and others added 3 commits
January 20, 2026 09:49
xrmx
enabled auto-merge (squash)
JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request
Feb 17, 2026…en-telemetry#4882) * opentelemetry-sdk: add experimental composable rule based sampler * Add CHANGELOG * Use a protocol for PredicateT * Update opentelemetry-sdk/src/opentelemetry/sdk/trace/_sampling_experimental/_rule_based.py Co-authored-by: Anuraag (Rag) Agrawal <anuraaga@gmail.com> * Extend Predicate protocol to require __str__ and use it on sampler get_description While at it also provide AttributePredicate * Use a generator for getting predicates and descriptions * Add tests that matches with more than one rule --------- Co-authored-by: Anuraag (Rag) Agrawal <anuraaga@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters