mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
refactor: prefix custom trace attributes and update schema handlers tests configs
This commit is contained in:
parent
3a663aa780
commit
aa64704ed1
7 changed files with 73 additions and 155 deletions
|
|
@ -55,22 +55,5 @@ listeners:
|
|||
|
||||
tracing:
|
||||
random_sampling: 100
|
||||
custom_attributes:
|
||||
- header: x-workspace-id
|
||||
key: workspace.id
|
||||
type: str
|
||||
- header: x-tenant-id
|
||||
key: tenant.id
|
||||
type: str
|
||||
- header: x-user-id
|
||||
key: user.id
|
||||
type: str
|
||||
- header: x-admin-level
|
||||
key: admin.level
|
||||
type: int
|
||||
- header: x-is-internal
|
||||
key: is.internal
|
||||
type: bool
|
||||
- header: x-budget
|
||||
key: budget.value
|
||||
type: float
|
||||
custom_attribute_prefixes:
|
||||
- x-katanemo-
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
### Travel Agent Chat Completion Request
|
||||
POST {{llm_endpoint}}/v1/chat/completions HTTP/1.1
|
||||
Content-Type: application/json
|
||||
X-Workspace-Id: ws_7e2c5d91b4224f59b0e6a4e0125c21b3
|
||||
X-Tenant-Id: ten_4102a8c7fa6542b084b395d2df184a9a
|
||||
X-User-Id: usr_19df7e6751b846f9ba026776e3c12abe
|
||||
X-Admin-Level: 3
|
||||
X-Is-Internal: true
|
||||
X-Budget: 42.5
|
||||
X-Katanemo-Workspace-Id: ws_7e2c5d91b4224f59b0e6a4e0125c21b3
|
||||
X-Katanemo-Tenant-Id: ten_4102a8c7fa6542b084b395d2df184a9a
|
||||
X-Katanemo-User-Id: usr_19df7e6751b846f9ba026776e3c12abe
|
||||
X-Katanemo-Admin-Level: 3
|
||||
X-Katanemo-Is-Internal: true
|
||||
X-Katanemo-Budget: 42.5
|
||||
|
||||
{
|
||||
"model": "gpt-4o",
|
||||
"model": "gpt-5.2",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
|
|
@ -26,7 +26,28 @@ X-Budget: 42.5
|
|||
"content": "What is one Alaska flight that goes direct to Atlanta from Seattle?"
|
||||
}
|
||||
],
|
||||
"max_tokens": 1000,
|
||||
"max_completion_tokens": 1000,
|
||||
"stream": false,
|
||||
"temperature": 1.0
|
||||
}
|
||||
|
||||
|
||||
### Travel Agent Request (prefix mismatch - ignored)
|
||||
POST {{llm_endpoint}}/v1/chat/completions HTTP/1.1
|
||||
Content-Type: application/json
|
||||
X-Other-Workspace-Id: ws_7e2c5d91b4224f59b0e6a4e0125c21b3
|
||||
X-Other-Tenant-Id: ten_4102a8c7fa6542b084b395d2df184a9a
|
||||
X-Other-User-Id: usr_19df7e6751b846f9ba026776e3c12abe
|
||||
|
||||
{
|
||||
"model": "gpt-5.2",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "What's the weather in Seattle?"
|
||||
}
|
||||
],
|
||||
"max_completion_tokens": 1000,
|
||||
"stream": false,
|
||||
"temperature": 1.0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue