Skip to content

Instrument with Monocle2AI

Open the agent file

  1. Select the Explorer view sidebar option
  2. Open the main entry point of the agent (e.g., lg_travel_agent.py)

Agent file open in VS Code

Add instrumentation

  1. Select the Okahu sidebar option
  2. Select the Instrument using Monocle2AI Tool

Instrument using Monocle2AI tool

The tool will add the Monocle2AI instrumentation commands to the agent code.

Monocle2AI instrumentation added to code

Note

If the Monocle2AI instrumentation commands are already present in the agent code, you will receive a message.

Monocle import already exists message

Send traces to Okahu Cloud

To send the traces to the Okahu Cloud platform, you need to update the monocle_exporters_list to "okahu" and Save the file.

Update exporter to okahu