Skip to content

Commit f57227b

Browse files
fix: support /api legacy routes for new go ingest (#319)
* fix: route legacy endpoints to go as well * fix: route legacy endpoints to go as well
1 parent 3761523 commit f57227b

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

charts/langsmith/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ maintainers:
55
66
description: Helm chart to deploy the langsmith application and all services it depends on.
77
type: application
8-
version: 0.10.21
8+
version: 0.10.22
99
appVersion: "0.10.60"

charts/langsmith/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# langsmith
22

3-
![Version: 0.10.21](https://img.shields.io/badge/Version-0.10.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.10.60](https://img.shields.io/badge/AppVersion-0.10.60-informational?style=flat-square)
3+
![Version: 0.10.22](https://img.shields.io/badge/Version-0.10.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.10.60](https://img.shields.io/badge/AppVersion-0.10.60-informational?style=flat-square)
44

55
Helm chart to deploy the langsmith application and all services it depends on.
66

charts/langsmith/templates/frontend/config-map.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,33 @@ data:
148148
}
149149
{{- end }}
150150
151+
location = /{{ .Values.ingress.subdomain }}/api/runs/multipart {
152+
rewrite /{{ .Values.ingress.subdomain }}/api/runs/multipart /runs/multipart break;
153+
proxy_set_header Connection '';
154+
proxy_http_version 1.1;
155+
proxy_buffering off;
156+
proxy_cache off;
157+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
158+
}
159+
160+
location = /{{ .Values.ingress.subdomain }}/api/runs/batch {
161+
rewrite /{{ .Values.ingress.subdomain }}/api/runs/batch /runs/batch break;
162+
proxy_set_header Connection '';
163+
proxy_http_version 1.1;
164+
proxy_buffering off;
165+
proxy_cache off;
166+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
167+
}
168+
169+
location = /{{ .Values.ingress.subdomain }}/api/v1/runs {
170+
rewrite /{{ .Values.ingress.subdomain }}/api/runs /runs break;
171+
proxy_set_header Connection '';
172+
proxy_http_version 1.1;
173+
proxy_buffering off;
174+
proxy_cache off;
175+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
176+
}
177+
151178
# Deprecated Backend Routes
152179
location ~ /{{ .Values.ingress.subdomain }}/api {
153180
rewrite /{{ .Values.ingress.subdomain }}/api/(.*) /api/v1/$1 break;
@@ -340,6 +367,33 @@ data:
340367
}
341368
{{- end }}
342369
370+
location = /api/runs/multipart {
371+
rewrite /api/runs/multipart /runs/multipart break;
372+
proxy_set_header Connection '';
373+
proxy_http_version 1.1;
374+
proxy_buffering off;
375+
proxy_cache off;
376+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
377+
}
378+
379+
location = /api/runs/batch {
380+
rewrite /api/runs/batch /runs/batch break;
381+
proxy_set_header Connection '';
382+
proxy_http_version 1.1;
383+
proxy_buffering off;
384+
proxy_cache off;
385+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
386+
}
387+
388+
location = /api/runs {
389+
rewrite /api/runs /runs break;
390+
proxy_set_header Connection '';
391+
proxy_http_version 1.1;
392+
proxy_buffering off;
393+
proxy_cache off;
394+
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
395+
}
396+
343397
# Deprecated Backend Routes To be removed in v8
344398
location ~ /api {
345399
rewrite /api/(.*) /api/v1/$1 break;

0 commit comments

Comments
 (0)