Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend metrics with retry-related instruments #2789

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

lucix-aws
Copy link
Contributor

Metrics component of #1744.

Extends upstream metrics additions from aws/smithy-go#536 with the following instruments (and their dimensions):

  • client.call.errors - number of errors encountered (service, operation, error type)
  • client.call.attempts - number of attempts made (service, operation)
  • client.call.attempt_duration - time span for an entire attempt (service, operation)

This is not the final merge before release, as some minor tweaks need to be made to some of the component names to align with our internal guidelines.

@lucix-aws lucix-aws requested a review from a team as a code owner September 13, 2024 22:27
@lucix-aws lucix-aws force-pushed the feat-observability-metrics branch from 8f37381 to 0850f37 Compare September 18, 2024 15:45
end := time.Now()

elapsed := end.Sub(start)
instr.Record(ctx, float64(elapsed)/1e9, opts...)
Copy link
Contributor

Choose a reason for hiding this comment

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

not a blocker, but I still dislike this. Are we instructing customers when using their own metrics to conform to this format as well when recording duration? If so, what happens if they don't?

@lucix-aws lucix-aws merged commit c141a21 into feat-observability Sep 18, 2024
11 checks passed
@lucix-aws lucix-aws deleted the feat-observability-metrics branch September 18, 2024 19:05
lucix-aws added a commit that referenced this pull request Sep 18, 2024
* extend metrics with retry-related instruments

* fix sdk.NowTime test shenanigans

* regen s3
lucix-aws added a commit that referenced this pull request Sep 19, 2024
* extend metrics with retry-related instruments

* fix sdk.NowTime test shenanigans

* regen s3
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