Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion openshift/configmap-otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ data:
otlphttp/trace-server:
endpoint: http://localhost:8080
encoding: json
otlphttp/langfuse:
endpoint: https://us.cloud.langfuse.com/api/public/otel
headers:
Authorization: "Basic ${env:LANGFUSE_AUTH}"
x-langfuse-ingestion-version: "4"
extensions:
health_check:
endpoint: 0.0.0.0:13133
Expand All @@ -25,4 +30,4 @@ data:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp/phoenix, otlphttp/trace-server]
exporters: [otlphttp/phoenix, otlphttp/trace-server, otlphttp/langfuse]
6 changes: 6 additions & 0 deletions openshift/deployment-otel-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ spec:
- name: otel-collector
image: docker.io/otel/opentelemetry-collector-contrib
imagePullPolicy: IfNotPresent
env:
- name: LANGFUSE_AUTH
valueFrom:
secretKeyRef:
name: langfuse-credentials
key: auth
ports:
- containerPort: 4318
protocol: TCP
Expand Down
1 change: 1 addition & 0 deletions ymir/agents/observability.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def on_start(self, span: Span, parent_context: Context | None = None) -> None:
jira_issue = current_jira_issue.get()
if jira_issue:
span.set_attribute("jira.issue", jira_issue)
span.set_attribute("langfuse.session.id", jira_issue)
workflow = current_workflow.get()
if workflow:
span.set_attribute("workflow.name", workflow)
Expand Down
Loading