Skip to content

Add improvements to default server metrics#4548

Merged
jasgin merged 8 commits intomainfrom
add-success-metric
Feb 27, 2026
Merged

Add improvements to default server metrics#4548
jasgin merged 8 commits intomainfrom
add-success-metric

Conversation

@jasgin
Copy link
Contributor

@jasgin jasgin commented Feb 25, 2026

Motivation and Context

Description

Add success metric to default server metrics, align naming, add method for disabling outstanding_requests metric.

Testing

Checklist

  • For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "client," "server," or both in the applies_to key.
  • For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "aws-sdk-rust" in the applies_to key.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jasgin jasgin requested review from a team as code owners February 25, 2026 22:32
@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • Client Test (ignoring whitespace)
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Copy link

@jlizen jlizen left a comment

Choose a reason for hiding this comment

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

I think probably we want to flip to bool?

What do you think about publishing eg success == false?

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • Client Test (ignoring whitespace)
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@jasgin jasgin force-pushed the add-success-metric branch from c8dd794 to 9a692ca Compare February 26, 2026 20:15
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link

@jlizen jlizen left a comment

Choose a reason for hiding this comment

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

Looks good, though list of metrics might need tweaking.

pub(crate) error: Option<u64>,
/// Server fault indicator (1 if 5xx status code, 0 otherwise)
pub(crate) fault: Option<u64>,
pub(crate) client_error: Option<bool>,
Copy link

Choose a reason for hiding this comment

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

good breakdown. and then, success lets you average across client/server/redirect by finding 0s

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • Client Test (ignoring whitespace)
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@jasgin jasgin enabled auto-merge (squash) February 27, 2026 18:42
@jasgin jasgin disabled auto-merge February 27, 2026 18:42
@jasgin jasgin changed the title Add success metric to default server metrics Add improvements to default server metrics Feb 27, 2026
@jasgin jasgin enabled auto-merge (squash) February 27, 2026 18:42
@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@jasgin jasgin merged commit 81d71b3 into main Feb 27, 2026
50 checks passed
@jasgin jasgin deleted the add-success-metric branch February 27, 2026 20:20
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