Skip to content

gRPC Metadata#14573

Merged
laurit merged 6 commits intoopen-telemetry:mainfrom
jaydeluca:metadata-grpc
Sep 4, 2025
Merged

gRPC Metadata#14573
laurit merged 6 commits intoopen-telemetry:mainfrom
jaydeluca:metadata-grpc

Conversation

@jaydeluca
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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