Skip to content

pre release fixes#554

Merged
tnaum-ms merged 3 commits into
nextfrom
dev/tnaum/pre-release-fixes
Apr 2, 2026
Merged

pre release fixes#554
tnaum-ms merged 3 commits into
nextfrom
dev/tnaum/pre-release-fixes

Conversation

@tnaum-ms
Copy link
Copy Markdown
Collaborator

@tnaum-ms tnaum-ms commented Apr 2, 2026

No description provided.

tnaum-ms added 3 commits April 2, 2026 18:14
The abort listener was kept active during synchronous API initialization
(llmEnhancedFeatureApis, QueryInsightsApis) after the MongoClient connected.
A late cancellation in that narrow window could close an already-connected
client while the method continued as successful. Remove the listener right
after connect() resolves to eliminate this race.
Add inline comment explaining that connectionCorrelationId retains the
value from the initial connection. Cached reconnects do not emit new
metadata telemetry events, so generating a new ID would be misleading
rather than helpful.
The connect telemetry event emitted on tree-expansion cancellation was
missing source and experience properties, making the event harder to
attribute in analytics. Add source='treeExpansion' and the experience
API type to match the pattern used by subclass connect events.
Copilot AI review requested due to automatic review settings April 2, 2026 16:20
@tnaum-ms tnaum-ms requested a review from a team as a code owner April 2, 2026 16:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR applies small pre-release fixes focused on telemetry enrichment during connect cancellation and more robust AbortSignal handling during MongoClient connection initialization.

Changes:

  • Adds additional telemetry properties (source, experience) when a connect attempt is cancelled during tree expansion.
  • Adjusts AbortSignal listener cleanup timing after MongoClient.connect() resolves and documents correlation ID behavior for cached reconnects.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/tree/documentdb/ClusterItemBase.ts Adds telemetry properties for cancelled connect attempts initiated via tree expansion.
src/documentdb/ClustersClient.ts Tweaks abort-listener cleanup around connect() and clarifies correlation ID semantics for cached reconnects.

Comment thread src/documentdb/ClustersClient.ts
Comment thread src/documentdb/ClustersClient.ts
@tnaum-ms tnaum-ms merged commit 77d1a31 into next Apr 2, 2026
12 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/pre-release-fixes branch April 2, 2026 16:44
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