Skip to content

Developers can troubleshoot and improve their custom SDK code by creating SDK request profiling sessions. When the session is active, it captures all SDK requests that occur during that period. Vault Admins can configure profiling sessions for a specific user or all users. Learn more about the Profiler log in the Vault Java SDK documentation.

You can use the Vault Toolbox plugin to create, download, and analyze Profiler logs. Profiler logs expire after 30 days. At the end of 30 days, Vault deletes the log and all log files.

Vault Admins can create a new Profiler session via the Vault UI, Vault API, or the Vault Toolbox plugin. SDK profiling sessions run for either 20 minutes or up to 10,000 SDK requests, whichever comes first. You can also use the Vault Toolbox plugin to end a session early.

To create a Profiler session:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Developer Logs () and double-click SDK Profiler ().
  4. In the dialog, click to create a session.
  5. In the dialog, provide a Label and Description for the session, then select the User for which the session should be enabled.
    IntelliJ Plugin Create Profiler SessionIntelliJ Plugin Create Profiler Session
  6. Click OK to create the session.

Vault Admins can end a Profiler session via the Vault UI, Vault API, or the Vault Toolbox plugin.

To end Profiler sessions:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Developer Logs () and double-click SDK Profiler ().
  4. In the dialog, select the checkbox for one or more profiler log session(s) or click Select in the header to select all sessions.
    IntelliJ Plugin End Profiler SessionIntelliJ Plugin End Profiler Session
  5. Click to end the selected session(s).

Once a session has ended, it has a Status of Processing while Vault prepares the data, which may take up to 15 minutes. Once the Status is Complete, the data is available for download.

Vault Admins can download the Profiler log via the Vault UI, Vault API, or the Vault Toolbox plugin. Your Vault can save up to 10 SDK Profiler Logs at once. After reaching the limit, you must delete an existing log or wait for one to expire.

To download Profiler logs:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Developer Logs () and double-click SDK Profiler ().
  4. In the dialog, select the checkbox for one or more profiler log session(s) or click Select in the header to select all sessions.
    Opening Profiler LogOpening Profiler Log
  5. Optional: Click to refresh the list of session(s).
  6. Optional: Click to delete the selected profiler session(s) from Vault.
  7. Click to download the selected logs. If this option is disabled, you must ensure the sessions you selected have ended and have a Status of Complete.
IntelliJ Plugin Profiler Log Download ResultIntelliJ Plugin Profiler Log Download Result

Vault Toolbox generates the Profiler logs for the selected sessions. Once the operation is complete, you can access the downloaded Profiler logs from the toolbox/logs/profiler/{vaultid} folder in your project directory. The CSV file contains the Profiler log data for that session.

To analyze Profiler logs:

  1. Within IntelliJ IDEA, open the Vault Toolbox plugin from the righthand sidebar.
  2. Select the tab.
  3. Expand Developer Logs () and double-click SDK Profiler ().
  4. In the dialog, previously downloaded logs are differentiated by a within the View column. To proceed with analyzing the log(s), select the checkbox for one or more downloaded logs, then click .
  5. In the dialog, you can apply filters to Profiler log data such as Start Time and End Time, and select tabs to view visualized data such as the SDK Count and SDK CPU Time.
    Analyze SDK Profiler LogAnalyze SDK Profiler Log
  6. Optional: To clear local files from your project directory, select the checkbox for one or more downloaded logs, then click .