Skip to content

Commit 152c403

Browse files
committed
Observation with Langfuse
1 parent bbf5b74 commit 152c403

File tree

15 files changed

+259
-12
lines changed

15 files changed

+259
-12
lines changed

examples/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# Examples
22

3-
Use the Docker Compose file in `observation-docker` to start observation stack.
3+
## Observation
4+
5+
### Grafana
6+
7+
Use the Docker Compose file in `observation-grafana` to start observation stack.
8+
9+
### Langfuse
10+
11+
Use the Docker Compose file in `observation-langfuse` to start observation stack.

examples/observation-docker/config/grafana-datasources.yaml renamed to examples/observation-grafana/config/grafana-datasources.yaml

File renamed without changes.

examples/observation-docker/config/otel-collector.yaml renamed to examples/observation-grafana/config/otel-collector.yaml

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.env
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Observation with Langfuse
2+
3+
Copy `langfuse.env.example` to `langfuse.env`.
4+
5+
Generate Langfuse HTTP Basic auth header using `$(echo -n 'PUBLIC_KEY:SECRET_KEY' | base64)`, then set to the value of `LANGFUSE_AUTH_STRING`.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
grpc:
5+
endpoint: "0.0.0.0:4317"
6+
http:
7+
endpoint: "0.0.0.0:4318"
8+
processors:
9+
batch:
10+
exporters:
11+
otlphttp/langfuse:
12+
endpoint: "http://langfuse-web:3000/api/public/otel"
13+
headers:
14+
Authorization: "Basic ${LANGFUSE_AUTH_STRING}"
15+
tls:
16+
insecure: true
17+
prometheus:
18+
endpoint: "otel-collector:10010"
19+
service:
20+
pipelines:
21+
metrics:
22+
receivers: [ otlp ]
23+
processors: [ batch ]
24+
exporters: [ prometheus ]
25+
traces:
26+
receivers: [ otlp ]
27+
processors: [ batch ]
28+
exporters: [ otlphttp/langfuse ]

0 commit comments

Comments
 (0)