Commit ecbee2d
authored
Enhance documentation and functionality for trace management (#1012)
* Enhance documentation and functionality for trace management
- Updated `mint.json` to include new usage paths for trace decorators and manual trace control.
- Revised `introduction.mdx` to reflect changes in session tracking terminology, replacing "sessions" with "traces" for clarity.
- Expanded `quickstart.mdx` to introduce the `@trace` decorator and manual trace management examples.
- Added new documentation files for `manual-trace-control.mdx` and `trace-decorator.mdx`, detailing advanced trace management techniques and usage patterns.
- Updated `sdk-reference.mdx` to include new parameters for trace management and improved examples for initializing the AgentOps SDK.
- Enhanced `tracking-agents.mdx` to demonstrate multi-agent workflows and coordination using the `@trace` decorator.
These changes improve the clarity and usability of the AgentOps SDK, particularly around trace management and agent tracking.
* Enhance documentation for trace management and agent tracking
- Updated `introduction.mdx` to clarify the use of the `@trace` decorator for custom trace creation.
- Revised `quickstart.mdx` to include examples of initializing AgentOps with manual trace control.
- Improved `examples.mdx` by updating image links to use raw GitHub URLs for better accessibility.
- Enhanced `manual-trace-control.mdx` to provide detailed examples of managing traces manually.
- Updated `recording-operations.mdx` to emphasize the use of the `@trace` decorator for grouping operations.
- Refined `sdk-reference.mdx` to clarify parameters for ending traces and the use of decorators.
- Improved `tracking-agents.mdx` to demonstrate structured tracking with the `@agent` decorator in multi-agent systems.
These changes improve the clarity and usability of the AgentOps SDK, particularly around trace management and agent tracking.
* Add Google Generative AI instrumentation module
- Introduced a new module for Google Generative AI (Gemini) API instrumentation, including `GoogleGenAIInstrumentor` for capturing telemetry data.
- Added attribute extraction functions for model and chat interactions, enhancing observability of API calls.
- Implemented wrappers for synchronous and asynchronous streaming methods to track performance metrics.
- Updated documentation to include usage examples and details on supported features for the new instrumentation.
- Refactored existing code to accommodate the new module structure and improve clarity.
These changes enhance the AgentOps SDK by providing comprehensive support for monitoring Google Generative AI interactions.
* Update mint.json to reorder integration paths, moving 'anthropic' to the correct position in the integrations list. This change improves the organization and accessibility of integration documentation.1 parent e586cee commit ecbee2d
File tree
23 files changed
+1960
-312
lines changed- agentops/instrumentation
- google_genai
- attributes
- docs
- v1
- examples
- v2
- examples
- integrations
- usage
23 files changed
+1960
-312
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
0 commit comments