Help us improve these docs. Take our quick survey.
curl --request POST \
--url https://api.example.com/trace/usage \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"filter": {
"op_names": [
"<string>"
],
"input_refs": [
"<string>"
],
"output_refs": [
"<string>"
],
"parent_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"call_ids": [
"<string>"
],
"thread_ids": [
"<string>"
],
"turn_ids": [
"<string>"
],
"trace_roots_only": true,
"wb_user_ids": [
"<string>"
],
"wb_run_ids": [
"<string>"
]
},
"query": {
"$expr": {
"$and": [
{
"$literal": "<string>"
}
]
}
},
"include_costs": false,
"limit": 10000
}
'{
"call_usage": {},
"unfinished_call_ids": [
"<string>"
]
}트레이스의 call별 사용량을 하위 항목 롤업과 함께 계산합니다.
curl --request POST \
--url https://api.example.com/trace/usage \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "<string>",
"filter": {
"op_names": [
"<string>"
],
"input_refs": [
"<string>"
],
"output_refs": [
"<string>"
],
"parent_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"call_ids": [
"<string>"
],
"thread_ids": [
"<string>"
],
"turn_ids": [
"<string>"
],
"trace_roots_only": true,
"wb_user_ids": [
"<string>"
],
"wb_run_ids": [
"<string>"
]
},
"query": {
"$expr": {
"$and": [
{
"$literal": "<string>"
}
]
}
},
"include_costs": false,
"limit": 10000
}
'{
"call_usage": {},
"unfinished_call_ids": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
하위 항목 롤업을 포함해 트레이스의 call별 사용량을 계산하기 위한 요청입니다.
이 Endpoint는 트레이스의 각 call에 대한 사용 메트릭을 반환하며, 각 call의 메트릭에는 해당 call 자체의 사용량과 모든 하위 항목의 사용량 합계가 포함됩니다. call별 롤업 메트릭을 확인하려는 Trace view에 사용하세요.
참고: 집계를 위해 일치하는 모든 call을 메모리에 로드합니다. 결과 집합이 매우 큰 경우 (1만 call 초과)에는 더 구체적인 필터를 사용하거나 애플리케이션 계층에서 페이지네이션을 사용하는 것을 고려하세요.
선택할 call을 지정하는 필터입니다. 일반적으로 트레이스의 모든 call을 가져오려면 trace_ids를 사용합니다.
Show child attributes
call을 필터링하기 위한 추가 쿼리 조건입니다.
Show child attributes
true이면 사용량에 비용 계산을 포함합니다.
처리할 최대 call 수입니다. 제한 없이 메모리를 사용하는 것을 방지하기 위한 안전 제한으로 작동합니다.