Skip to content

Feature ids#312

Merged
richardwang1124 merged 12 commits into
decaffrom
feature/feature-ids
Jul 16, 2025
Merged

Feature ids#312
richardwang1124 merged 12 commits into
decaffrom
feature/feature-ids

Conversation

@richardwang1124
Copy link
Copy Markdown
Contributor

@richardwang1124 richardwang1124 commented Jul 11, 2025

Add features module to capture generic feature ids.

Comment thread gems/smithy-client/lib/smithy-client/plugins/protocol.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/pageable_response.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/plugins/protocol.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/waiters/poller.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/plugins/request_compression.rb Outdated
Comment thread gems/smithy-client/spec/smithy-client/features_spec.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/plugins/retry_errors.rb Outdated
Comment thread gems/smithy-client/spec/smithy-client/features_spec.rb Outdated
Copy link
Copy Markdown
Contributor

@jterapin jterapin left a comment

Choose a reason for hiding this comment

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

Nice! Great job on this side quest

Comment thread gems/smithy-client/lib/smithy-client/features.rb
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
Comment thread gems/smithy-client/lib/smithy-client/features.rb Outdated
def call(context)
build_request(context)
response = @handler.call(context)
response = Features.track('PROTOCOL_RPC_V2_CBOR') { @handler.call(context) }
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.

Friendly reminder that whenever we do the aws-variation of the plugin, we will need to bring this.

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.

Good point - we can probably not bother tracking this here and delete it.

Copy link
Copy Markdown
Contributor

@mullermp mullermp left a comment

Choose a reason for hiding this comment

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

Awesome!! Super clean

def call(context)
build_request(context)
response = @handler.call(context)
response = Features.track('PROTOCOL_RPC_V2_CBOR') { @handler.call(context) }
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.

Good point - we can probably not bother tracking this here and delete it.

end

def track_feature(encoding, &block)
if encoding == 'gzip'
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.

case when would be appreciated here.

@richardwang1124 richardwang1124 merged commit 9594833 into decaf Jul 16, 2025
15 checks passed
@richardwang1124 richardwang1124 deleted the feature/feature-ids branch July 16, 2025 19:37
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.

3 participants