Notice: The Weights & Biases domain will change on September 30. This includes all websites and services that use a W&B domain. No action is needed today.
withAttributes<T>(attrs: Record<string, any>, fn: () => T | Promise<T>): T | Promise<T>
현재 실행 컨텍스트에 속성을 추가하여 fn 내부에서 생성된 모든 calls가
자동으로 이를 상속하도록 합니다. 속성은 트레이스 서버의 call 기록에
기록되며 Weave UI/필터링에 표시되므로 request ID, tenant, 실험 등으로 run에 태그를 지정하는 데
적합합니다.예시: