This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Commit 3781a2b
authored
Telemetry fixes for ToolName and passing context. (#741)
* Add documentation about handling errors that occur in a loader.
* Remove Activity handling inside CommandFactoryToolLoader.
* Update McpRuntime to set the Activity status depending on result from calling a tool.
* Fix constructor change
* Add tests for telemetry.
* Update CHANGELOG
* Add tests for Tagging ToolName
* Pass in command context of current activity if available.
* Add current context to cli1 parent 9df41d4 commit 3781a2b
File tree
9 files changed
+183
-33
lines changed- core
- src
- AzureMcp.Cli
- AzureMcp.Core
- Areas/Server/Commands
- Runtime
- ToolLoading
- Services/Telemetry
- tests/AzureMcp.Core.UnitTests/Areas/Server/Commands
- Runtime
- ToolLoading
9 files changed
+183
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
77 | 114 | | |
78 | 115 | | |
79 | 116 | | |
| |||
84 | 121 | | |
85 | 122 | | |
86 | 123 | | |
87 | | - | |
88 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
89 | 139 | | |
90 | 140 | | |
91 | 141 | | |
| |||
Lines changed: 1 addition & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
14 | 9 | | |
15 | | - | |
16 | 10 | | |
17 | 11 | | |
18 | 12 | | |
| |||
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | | - | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | | - | |
32 | 24 | | |
33 | | - | |
34 | 25 | | |
35 | 26 | | |
36 | 27 | | |
| |||
65 | 56 | | |
66 | 57 | | |
67 | 58 | | |
68 | | - | |
69 | | - | |
70 | 59 | | |
71 | 60 | | |
72 | 61 | | |
73 | 62 | | |
74 | 63 | | |
75 | 64 | | |
76 | 65 | | |
77 | | - | |
78 | | - | |
79 | 66 | | |
80 | 67 | | |
81 | 68 | | |
| |||
84 | 71 | | |
85 | 72 | | |
86 | 73 | | |
87 | | - | |
88 | | - | |
89 | 74 | | |
90 | 75 | | |
91 | 76 | | |
| |||
94 | 79 | | |
95 | 80 | | |
96 | 81 | | |
97 | | - | |
98 | | - | |
99 | 82 | | |
100 | 83 | | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
105 | | - | |
| 88 | + | |
106 | 89 | | |
107 | 90 | | |
108 | 91 | | |
| |||
128 | 111 | | |
129 | 112 | | |
130 | 113 | | |
131 | | - | |
132 | 114 | | |
133 | 115 | | |
134 | 116 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
0 commit comments