-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conversation
it's already done via callWithTelemetryAndErrorHandling
src/webviews/mongoClusters/collectionView/components/toolbar/ToolbarViewNavigation.tsx
Outdated
Show resolved
Hide resolved
src/webviews/mongoClusters/collectionView/components/toolbar/ToolbarViewNavigation.tsx
Outdated
Show resolved
Hide resolved
src/webviews/mongoClusters/collectionView/components/toolbar/ToolbarViewNavigation.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
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; |
There was a problem hiding this comment.
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.
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 }) => { |
There was a problem hiding this comment.
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.
Improved vCore's telemetry support. Added telemetry to tRPC communication.