-
Notifications
You must be signed in to change notification settings - Fork 159
chore: add connection metadata to telemetry #716
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
base: main
Are you sure you want to change the base?
Changes from 10 commits
c5ec47e
3b9e595
fcbfcff
1319767
94af53d
b6c9790
9a28985
55cb171
d2709e0
ac8aa2d
b5964dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ import { AtlasLocalToolBase } from "../atlasLocalTool.js"; | |
| import type { OperationType, ToolArgs } from "../../tool.js"; | ||
| import type { Client } from "@mongodb-js/atlas-local"; | ||
| import { CommonArgs } from "../../args.js"; | ||
| import type { ConnectionMetadata } from "../../../telemetry/types.js"; | ||
|
|
||
| export class ConnectDeploymentTool extends AtlasLocalToolBase { | ||
| public name = "atlas-local-connect-deployment"; | ||
|
|
@@ -34,4 +35,11 @@ export class ConnectDeploymentTool extends AtlasLocalToolBase { | |
| }, | ||
| }; | ||
| } | ||
|
|
||
| protected override resolveTelemetryMetadata(result: CallToolResult): ConnectionMetadata { | ||
| return { | ||
| ...super.resolveTelemetryMetadata(result), | ||
| ...this.getConnectionInfoMetadata(), | ||
| }; | ||
| } | ||
|
Comment on lines
39
to
54
|
||
| } | ||
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.
planning to add host info here - starting with connection auth type as an example of something we can capture