Skip to content

Conversation

jaydeluca
Copy link
Member

Part of #13468 and #14128

static AttributeAssertion experimentalSatisfies(
AttributeKey<Long> key, Consumer<? super Long> assertion) {
return satisfies(
key, val -> val.satisfiesAnyOf(v -> assertThat(isEnabled).isFalse(), assertion::accept));
Copy link
Contributor

Choose a reason for hiding this comment

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

assertThat(isEnabled).isFalse() feels roundabout, maybe

    return satisfies(
        key, val -> {
          if (isEnabled) {
            val.satisfies(assertion::accept);
          }
        });

Copy link
Member Author

Choose a reason for hiding this comment

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

ah yea, i like that better thanks, i'll update

@laurit laurit merged commit b3df635 into open-telemetry:main Sep 4, 2025
89 checks passed
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.

2 participants