trackFunctionCall
Tracks a function call with optional details.
Parameters
customName
Optional custom name for the function.
details
Additional details about the function call.
category
Optional category for grouping (can be any type).