GitLab Well Architected
Cookbook navigation
Prompts / Trace Function Usage Across Codebase

Trace Function Usage Across Codebase

Code UnderstandingDeveloperNavigationRefactoringCreateBeginner

Quickly locate all call sites for any method or function across your entire codebase. Invaluable when planning refactoring work.

For GitLab Duo

prompt

Show me all the places we use [method/pattern] in the codebase

Use the prompt

Provide the method or pattern and identify the repository. Include aliases or wrappers you know about so the search isn't limited to a single spelling.