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

addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency #38416

Conversation

xinlian12
Copy link
Member

@xinlian12 xinlian12 commented Jan 22, 2024

Changes:
populating ChannelAcquisitionTimeline in CosmosDiagnostics based on the duration spent in channelAcquisitionStarted timeline stage.

By default if the channelAcquisitionStarted took more than 1s, then extra details will be populated in CosmosDiagnostics in section transportRequestChannelAcquisitionContext

Examples:
image

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@xinlian12 xinlian12 force-pushed the addChannelAcquisitionContextInCosmosDiagnosticsBasedOnThreshold branch from b7ab5b0 to c933c14 Compare January 22, 2024 23:15
@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12 xinlian12 merged commit a5dfe54 into Azure:main Jan 23, 2024
65 checks passed
FabianMeiswinkel pushed a commit to FabianMeiswinkel/azure-sdk-for-java that referenced this pull request Feb 3, 2024
…38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

* Update utils.py

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
FabianMeiswinkel added a commit that referenced this pull request Feb 4, 2024
…se (#38626)

* Few minor diagnostics perf improvements (#38232)

* Check for actual meterRegistry

* Update ClientTelemetryMetrics.java

* Update ClientTelemetryMetrics.java

* Update CosmosDiagnosticsTest.java

* Removing String.format in metrics

* Update ClientTelemetryMetrics.java

* Update Uri.java

* Update RntbdClientChannelHealthChecker.java

* Update RntbdToken.java

* Update FaultInjectionRequestContext.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* Update RntbdTokenStream.java

* EnumMap changes

* Avoiding ImmutableEnumMaps

* Fixing unit tests

* Update ClientTelemetryMetrics.java

* Update FaultInjectionRequestContext.java

* Update CHANGELOG.md

* Release preparations

* Update CHANGELOG.md

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable (#38388)

* Allowing to opt-out of E2E timeout for non-point operations via system property or environment variable

* Tests

* Reacting to code review feedback

* remove winutils download steps (#38030)

Co-authored-by: annie-mac <[email protected]>

* addChannelAcquisitionContextInCosmosDiagnosticsBasedOnLatency (#38416)

* add channelAcquisitionContext in cosmosDiagnostics when reaching threshold

---------

Co-authored-by: annie-mac <[email protected]>

* Fixing release break for hotfix

* Update utils.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

* Update set_versions.py

---------

Co-authored-by: Annie Liang <[email protected]>
Co-authored-by: annie-mac <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants