이 문서에서는 조직 내 다른 Google Cloud 프로젝트에 저장된 애플리케이션에서 스팬을 생성할 때 단일 컨텍스트에서 trace의 모든 스팬을 확인하는 방법을 설명합니다.
Google Cloud 프로젝트 A 및 B가 있는데 프로젝트 B에 호스팅되는 애플리케이션이 프로젝트 A에 호스팅되는 애플리케이션으로 호출을 전송한다고 가정하겠습니다.
Google Cloud 콘솔을 열고 프로젝트 A를 선택하면 프로젝트 A에 호스팅된 애플리케이션에서 생성한 trace 스팬만 볼 수 있습니다. 기본 구성에서는 프로젝트 A로 호출할 때 프로젝트 B에서 생성한 trace 스팬은 볼 수 없습니다.
프로젝트 A의 컨텍스트에서 A 프로젝트로 호출할 때 프로젝트 B에서 생성한 trace 스팬을 보려면 Trace의 교차 프로젝트 기능을 사용합니다. 이 기능을 사용하면 프로젝트 A의 trace 데이터를 확인하면서 프로젝트 A를 호출할 때 프로젝트 B에서 생성한 스팬도 볼 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-17(UTC)"],[],[],null,["# View traces across projects\n\nBy default, the **Trace Explorer** page only searches your selected\nproject for trace data. When a trace has data stored in multiple projects,\nas might occur when an application in one project makes a call into\nan application hosted by another project, you need to perform\nthe following steps to view all spans in the trace:\n\n1. Create a trace scope that\n lists the Google Cloud projects that store the spans in a trace.\n For information about trace scopes, see\n [Create and manage trace scopes](/trace/docs/trace-scope/create-and-manage).\n\n2. Open the **Trace Explorer** page and set the scope to\n be the trace scope that you created in the previous step.\n For more information, see\n [Configure which projects are searched for span data](/trace/docs/finding-traces#refine-scope).\n\n Your Identity and Access Management (IAM) roles on the projects listed in the\n trace scope and the\n time-range setting determine what data is displayed. The trace scope\n only specifies which resources are searched.\n\n When the **Trace Explorer** page opens, it searches the\n resources listed in the [default trace scope](/stackdriver/docs/scopes/configure#default-scope),\n provided that scope is accessible. When that scope isn't accessible,\n your Google Cloud project is searched. You can set which\n trace scope is the default trace scope.\n\n| **Note:** The **Trace Explorer** and **legacy** **Trace Explorer** pages use different rules to search for trace data. The **Trace Explorer** page only searchs the projects you specify in a trace scope. In contrast, the **legacy** **Trace Explorer** page searches all projects in an organization. Because the **legacy** **Trace Explorer** page searches your organization, you can use it to help you identify the projects to add to your trace scope. For information about how to identify these projects, see [Migrate to trace scopes](/trace/docs/trace-scope/create-and-manage#migrate)."]]