File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
examples/code-agent/step-03-add-observability Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # Code Agent - Step 03: Add Observability
2+
3+ > Code from the blog post: [ TBA] ( )
4+
5+ This example extends our Code Agent from Step 2 with OpenTelemetry observability through LangFuse.
6+
7+ ## Prerequisites
8+
9+ - Java 17+
10+ - OpenAI API key
11+
12+ ## Setup
13+
14+ ``` bash
15+ export OPENAI_API_KEY=" your-openai-key"
16+ export LANGFUSE_HOST=" https://cloud.langfuse.com"
17+ export LANGFUSE_PUBLIC_KEY=" your-public-key"
18+ export LANGFUSE_SECRET_KEY=" your-secret-key"
19+ ```
20+
21+ ## Run
22+
23+ Navigate to this example:
24+ ```
25+ cd examples/code-agent/step-03-add-observability
26+ ```
27+
28+ Run the agent on any project:
29+ ```
30+ ./gradlew run --args="/absolute/path/to/project 'Task description'"
31+ ```
You can’t perform that action at this time.
0 commit comments