Skip to content

refactor!: observability API and OTeL provider #886

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

Merged
merged 17 commits into from
Jul 18, 2023
Merged

refactor!: observability API and OTeL provider #886

merged 17 commits into from
Jul 18, 2023

Conversation

aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Jul 7, 2023

Issue #

n/a

Description of changes

This is the final PR to main that refactors the observability instrumentation (telemetry) APIs. This also includes an implementation of a TelemetryProvider based on OpenTelemetry.

Incremental PRs already reviewed:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aajtodd aajtodd marked this pull request as ready for review July 7, 2023 19:15
@aajtodd aajtodd requested a review from a team as a code owner July 7, 2023 19:15
@aajtodd
Copy link
Contributor Author

aajtodd commented Jul 7, 2023

TODO: Remove or update existing tracing/observability design.

@ianbotsf
Copy link
Contributor

ianbotsf commented Jul 7, 2023

TODO: Remove or update existing tracing/observability design.

I recommend to update, which I believe may help users write their own observability integrations and/or use observability hooks.

{
"id": "44708ceb-cc8c-478c-bd35-af82aa79f546",
"type": "misc",
"description": "**BREAKING**: Refactor observability API and configuration."
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I recommend including a link to the breaking discussion post.

public val requestsQueuedDuration: DoubleHistogram = meter.createDoubleHistogram(
"smithy.client.http.requests.queued_duration",
"s",
"The amount of time a requests spent queued waiting to be executed by the HTTP client",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "a request"

Comment on lines +93 to +96
attempts++
if (attempts > 1) {
metrics.rpcRetryCount.add(1L, perRpcAttributes, metrics.provider.contextManager.current())
}
Copy link
Contributor

@lauzadis lauzadis Jul 17, 2023

Choose a reason for hiding this comment

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

I think this is counting the first attempt as a retry, is that correct?

edit: nvm

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 40 Code Smells

No Coverage information No Coverage information
2.0% 2.0% Duplication

@aajtodd aajtodd merged commit 46c7091 into main Jul 18, 2023
@aajtodd aajtodd deleted the observability branch July 18, 2023 15:46
aajtodd added a commit that referenced this pull request Mar 11, 2024
* feat: identity API upstream changes (#864)
* track upstream codegen changes (#879)
* track upstream IdentityProvider and Attributes changes (#881)
* add base class for credentials config (#883)

BREAKING CHANGE: `CredentialsProvider` method name and signature changed. `signer` property removed from service client config in favor of `authSchemes` override.
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