Skip to main content
If your application requires more flexibility and you can’t use the wrap helpers, you can use the trackEvent method directly. The trackEvent method is used to track and log runs in your application. It takes three parameters: type, event, and data.

Parameters:

The RunEvent type is composed of the following properties:

Example to track an agent:

Using the parentRunId parameter

To create traces with sub-agents, you can use the parentRunId parameter to link child runs.