Skip to content

Commit b5fc63f

Browse files
Step-03: Add README for observability example with setup and instructions
1 parent eae1bac commit b5fc63f

File tree

1 file changed

+31
-0
lines changed
  • examples/code-agent/step-03-add-observability

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
```

0 commit comments

Comments
 (0)