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

unified and simplified vCore telemetry #2476

Merged
merged 19 commits into from
Dec 5, 2024
Merged

Conversation

tnaum-ms
Copy link
Collaborator

@tnaum-ms tnaum-ms commented Nov 27, 2024

Improved vCore's telemetry support. Added telemetry to tRPC communication.

@tnaum-ms tnaum-ms marked this pull request as ready for review November 27, 2024 13:04
@tnaum-ms tnaum-ms requested review from a team as code owners November 27, 2024 13:04
src/commands/importDocuments.ts Outdated Show resolved Hide resolved
src/commands/importDocuments.ts Outdated Show resolved Hide resolved
src/mongoClusters/MongoClustersClient.ts Outdated Show resolved Hide resolved
src/mongoClusters/commands/exportDocuments.ts Outdated Show resolved Hide resolved
src/mongoClusters/commands/exportDocuments.ts Show resolved Hide resolved
src/webviews/mongoClusters/documentView/documentView.tsx Outdated Show resolved Hide resolved
src/webviews/mongoClusters/documentView/documentView.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@tnaum-ms tnaum-ms left a comment

Choose a reason for hiding this comment

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

Thank you @bk201- for your review.

src/mongoClusters/commands/exportDocuments.ts Show resolved Hide resolved
src/mongoClusters/commands/exportDocuments.ts Outdated Show resolved Hide resolved
result['serverInfo.storageEngines'] = (buildInfo.storageEngines as string[])?.join(';');
result['serverInfo.modules'] = (buildInfo.modules as string[])?.join(';');
} catch (error) {
result['serverInfo.error'] = (error as Error).message;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! :) I'll make sure to remember. Thanks for the tip, and please keep sharing them, I'm still catching up with JS/TS.

src/mongoClusters/MongoClustersClient.ts Outdated Show resolved Hide resolved
src/webviews/api/extension-server/trpc.ts Show resolved Hide resolved
sessionId: string;
databaseName: string;
collectionName: string;
collectionTreeItem: CollectionItem; // needed to execute commands on the collection as the tree APIv2 doesn't support id-based search for tree items.
};

export const collectionsViewRouter = router({
getInfo: publicProcedure.query(({ ctx }) => {
getInfo: publicProcedure.use(trpcToTelemetry).query(({ ctx }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Interesting. I haven’t seen it so far, but I wasn’t specifically looking for it either. I’ll investigate it if we choose tRPC for the long(er) run.

@tnaum-ms tnaum-ms requested a review from bk201- December 3, 2024 12:11
@tnaum-ms tnaum-ms merged commit db20b2d into main Dec 5, 2024
2 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/telemetry-update branch December 5, 2024 12:51
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