Skip to main content

trace.csv reference

The Moderne CLI and platform record telemetry for each command as a row in a trace.csv file, one row per repository per command. For how that telemetry is generated and collected, see Understanding CLI usage across your organization. For how to replicate it to your own cloud storage and query it, see Querying and BI.

This page is the field reference for those rows.

How to read this reference​

  • Columns are grouped by stage. A stage is one step of the CLI workflow - such as sync, build, or run. Each stage's columns start with its name as a prefix. For example, build stage's columns are buildOutcome, buildStartTime, and so on.
  • Traces are hierarchical. Each command writes its own stage plus every earlier stage in the workflow. A mod run row therefore has the sync, build, and run columns, while a mod git commit row has everything through commit. A stage a command didn't reach is left empty.
  • organization is the last of the stage columns. Because each command type writes a different set of stages, the row width and the position of organization differ by type. If you use trace tags, one tag.<key> column per tag is appended after organization, so it is not the last column in that case.
  • Every field is written as text. The Type column below is the logical type of the value (what it represents), not a storage type. A CSV field is always text until you cast it.
  • Column headers are mixed-case in the file (runStartTime). Query engines that fold identifiers to lowercase (Athena, Trino) will expose them lowercased (runstarttime).
  • Every *Outcome column holds one of Succeeded, Failed, Canceled, or Skipped.
  • Columns change between CLI versions, and new fields are inserted mid-stage rather than added at the end. Older partitions can be both narrower and differently ordered, which a positional reader will not warn you about. Prefer reading by column name.
  • *Log columns are not exported. Each stage records a local log path, but those columns are stripped when the trace is queued for upload, so they never appear in the CSV delivered to your bucket.

Trace hierarchy​

Each command produces a trace that includes its own stage plus all prior stages. The type value identifies the command.

CommandtypeStages included
mod git syncsyncSync
mod buildbuildSync + Build
mod runrunSync + Build + Run
mod git applyapplySync + Build + Run + Apply
mod git addaddSync + Build + Run + Apply + Add
mod git commitcommitSync + Build + Run + Apply + Add + Commit
mod git pushpushSync + Build + Run + Apply + Add + Commit + Push
mod publishpublishSync + Build + Publish
mod execexecExec (standalone)
MCP server tool callmcpMCP (standalone)
mod <agent> chatagentAgent (standalone, no repository columns)
mod searchsearchSearch (standalone, no repository columns)
mod navigatenavigateNavigate (standalone)
Code search in ModernesearchSearch (standalone, no repository columns)
Code navigation in ModernenavigateNavigate (standalone)

mod publish runs after Build in place of the Run through Push chain. Its rows have no columns for those stages.

Build columns and prebuilt LSTs​

Populated build columns do not mean a build ran on the machine that issued the command. Every LST carries a trace.json describing the build that produced it, so when mod git sync downloads a prebuilt LST, the CLI reads that file and carries its build stage into the trace. The build columns then describe the original build, wherever and whenever it happened.

To tell the two apart, check syncLstDownloadUri: populated means the LST was downloaded, empty means it was built locally.

LSTs produced before CLI 3.45.0 have no embedded trace.json. Their build columns are empty apart from an identifier.

Common fields​

Every row has these columns. The first three are the repository columns, which identify the repository the command ran in. Agent and search rows are the exception and have only developer and cliVersion.

Rows written by a CLI older than 4.12.0 have no cliVersion column. Search and navigate rows that come from Moderne won't have one either.

ColumnTypeDescriptionExample
originstringSCM hostgithub.com
pathstringRepository path (org/repo)openrewrite/rewrite
branchstringBranch namemain
developerstringUser emailuser@example.com
cliVersionstringCLI version that wrote the row4.12.6

Sync stage​

Populated after mod git sync (and by any command that syncs first).

ColumnTypeDescriptionExample
syncOutcomestringClone/sync resultSucceeded
syncCloneUristringClone URLhttps://github.com/org/repo
syncLstDownloadUristringLST download URL (empty if built locally)
syncStartTimeISO 8601Sync start timestamp2026-02-19T00:07:11.946Z
syncEndTimeISO 8601Sync end timestamp2026-02-19T00:07:13.704Z
syncChangesetstringGit commit SHA at synca3b1862d...
syncElapsedTimeMsintegerDuration in milliseconds1758

Build stage​

Populated after mod build.

ColumnTypeDescriptionExample
buildOutcomestringBuild resultSucceeded
buildFailureCategorystringWhy a failed build failedOther
buildFailureExceptionstringInnermost exception reportedjava.lang.ClassNotFoundException
buildFailureReasonstringInnermost cause, tool's wordsorg.gradle.api.plugins.MavenPlugin
buildFailureStepstringBuild step that failedJavaScript
buildStartTimeISO 8601Build start timestamp2026-02-19T00:12:22.215Z
buildEndTimeISO 8601Build end timestamp2026-02-19T00:12:47.263Z
buildIdstringBuild identifier20260219000719-cYGAL
buildDependencyResolutionTimeMsintegerDependency resolution time (ms)13534
buildChangesetstringGit SHA at build timea3b1862d...
buildToolstringPrimary build toolMaven
buildToolVersionstringPrimary build tool version3.9.16
buildJdkstringJDK the build used17.0.20.1-tem
buildMavenVersionstringMaven version used3.8.4
buildGradleVersionstringGradle version used
buildBazelVersionstringBazel version used
buildDotnetVersionstring.NET version used
buildGoVersionstringGo version used1.25.14
buildPythonVersionstringPython version used
buildNodeVersionstringNode.js version used
buildOsNamestringBuild host OSLinux
buildOsVersionstringOS kernel version4.14.355-280.710.amzn2.x86_64
buildOsEolstringLine ending formatLF
buildGitAutocrlfstringGit autocrlf settingFalse
buildGitEolstringGit eol settingNative
buildSourceFileCountintegerSource files in repo256
buildLineCountintegerTotal lines of code41015
buildParseErrorCountintegerParse errors during build1
buildWeightintegerLST weight83285
buildMaxWeightintegerMax single-file weight6617
buildMaxWeightSourceFilestringHeaviest file pathsrc/test/MessageMLContextTest.java
buildCliVersionstringCLI version that built the LST3.57.8
buildElapsedTimeMsintegerBuild duration (ms)25048

Run stage​

Populated after mod run.

ColumnTypeDescriptionExample
runOutcomestringRecipe run resultSucceeded
runStartTimeISO 8601Run start timestamp2026-02-19T20:53:58.396Z
runEndTimeISO 8601Run end timestamp2026-02-19T20:54:29.312Z
runIdstringRun identifier20260219145356-EWS22
runUnlicensedAttemptbooleanWas this an unlicensed attempt?false
runStreamingbooleanStreaming mode?false
runRecipeIdstringFully qualified recipe nameorg.openrewrite.java.OrderImports
runRecipeInstanceNamestringDisplay nameOrder imports
runRecipeOptionsstringJSON recipe options{}
runRecipeArtifactstringRecipe artifact GAVorg.openrewrite:rewrite-java:8.70.0
runEstimatedEffortTimeSavingsMsintegerEstimated time saved (ms)23100000
runDependencyResolutionTimeMsintegerDependency resolution time (ms)0
runPomCacheHitRatefloatPOM cache hit rate0.919
runResolvedPomCacheHitRatefloatResolved POM cache hit rate1.0
runFilesWithFixResultsintegerFiles with fix results77
runFilesWithSearchResultsintegerFiles with search results0
runFilesWithErrorsintegerFiles with errors0
runFilesSearchedintegerTotal files searched252
runLinesAddedintegerLines added across the recipe's changes, counted with git semantics418
runLinesRemovedintegerLines removed across the recipe's changes, counted with git semantics126
runDataTablesintegerData tables produced2
runThreadstringThread nameForkJoinPool.commonPool-worker-10
runElapsedTimeMsintegerRecipe run duration (ms)30916

Apply stage​

Populated after mod git apply.

ColumnTypeDescriptionExample
applyOutcomestringApply resultSucceeded
applyStartTimeISO 8601Apply start timestamp2026-02-19T21:28:30.330Z
applyEndTimeISO 8601Apply end timestamp2026-02-19T21:28:30.621Z
applyIdstringApply identifier20260219152829-UpYgU
applyElapsedTimeMsintegerDuration (ms)291

Add stage​

Populated after mod git add.

ColumnTypeDescriptionExample
addOutcomestringGit add resultSucceeded
addStartTimeISO 8601Add start timestamp2026-02-19T21:28:31.090Z
addEndTimeISO 8601Add end timestamp2026-02-19T21:28:32.485Z
addIdstringAdd identifier20260219152830-FN6kt
addElapsedTimeMsintegerDuration (ms)1395

Commit stage​

Populated after mod git commit.

ColumnTypeDescriptionExample
commitOutcomestringCommit resultSucceeded
commitStartTimeISO 8601Commit start timestamp2026-02-19T21:28:32.965Z
commitEndTimeISO 8601Commit end timestamp2026-02-19T21:28:33.064Z
commitIdstringRun ID (not a git SHA)20260219152832-ztzOh
commitBranchstringTarget branchmain
commitShastringGit SHA of the commit5bc3ba70...
commitElapsedTimeMsintegerDuration (ms)99

Push stage​

Populated after mod git push.

ColumnTypeDescriptionExample
pushOutcomestringPush resultSucceeded
pushStartTimeISO 8601Push start timestamp2026-02-19T21:28:34.100Z
pushEndTimeISO 8601Push end timestamp2026-02-19T21:28:35.500Z
pushIdstringPush identifier20260219152834-Ph1kd
pushRemoteBranchstringBranch pushed to on the remotemoderne/order-imports
pushSetUpstreambooleanWhether the push set the upstream tracking branchtrue
pushElapsedTimeMsintegerDuration (ms)1400

Publish stage​

Populated after mod publish. These columns appear only in mod publish rows - they are not part of the mod git sync → mod git push workflow chain. Because mod publish branches off after Build, the publish columns slot in immediately after the build stage.

ColumnTypeDescriptionExample
publishOutcomestringPublish resultSucceeded
publishStartTimeISO 8601Publish start timestamp2026-04-10T15:30:00.000Z
publishEndTimeISO 8601Publish end timestamp2026-04-10T15:30:04.512Z
publishIdstringPublish command identifier20260410103000-PbLsh
publishUristringDestination URI of the published LST artifact (empty when publish was skipped or failed before upload)https://artifacts.example.com/org/repo/1.0/repo-1.0.jar
publishElapsedTimeMsintegerDuration (ms)4512

Exec stage​

Populated by mod exec. Exec rows are standalone: they have the common columns plus the exec columns, with no sync/build/run stages.

execCommand records the full command line and execExecutionDirectory records an absolute local path. Pass credentials to mod exec through environment variables instead of as command arguments. Otherwise, they'll be captured in telemetry.

ColumnTypeDescriptionExample
execOutcomestringCommand resultSucceeded
execStartTimeISO 8601Start timestamp2026-05-02T14:10:03.120Z
execEndTimeISO 8601End timestamp2026-05-02T14:10:09.882Z
execIdstringExec command identifier20260502091003-Xk2Lm
execCommandstringThe command as writtenmvn -q test
execCommandWithSubstitutionsstringThe command after variable substitutionmvn -q test
execExitCodeintegerProcess exit code0
execRecipeRunIdstringRun identifier, when the exec was scoped to a recipe run20260502090958-EWS22
execExecutionDirectorystringDirectory the command ran in/home/user/repos/org/repo
execVarJavaHomestringJAVA_HOME as seen by the command/usr/lib/jvm/java-21
execVarModerneJavaHomestringMODERNE_JAVA_HOME
execVarModerneJavaVersionstringMODERNE_JAVA_VERSION21
execVarModerneJavaJdkstringMODERNE_JAVA_JDK
execVarModerneBuildToolstringMODERNE_BUILD_TOOLmaven
execVarModerneBuildToolCompilestringMODERNE_BUILD_TOOL_COMPILE
execVarModerneBuildToolCheckstringMODERNE_BUILD_TOOL_CHECK
execVarModerneBuildToolDirstringMODERNE_BUILD_TOOL_DIR
execVarModerneBuildToolExecutablestringMODERNE_BUILD_TOOL_EXECUTABLE
execElapsedTimeMsintegerDuration (ms)6762

MCP fields​

Populated by Moderne MCP server tool calls. MCP rows are standalone: they have the common columns plus the MCP columns, with no sync/build/run stages.

ColumnTypeDescriptionExample
mcpOutcomestringTool-call resultSucceeded
mcpStartTimeISO 8601Tool-call start timestamp2026-06-14T10:15:02.100Z
mcpEndTimeISO 8601Tool-call end timestamp2026-06-14T10:15:02.640Z
mcpSessionIdstringMCP session identifiera1b2c3d4
mcpToolNamestringName of the MCP tool invokedfind_types
mcpRecipeIdstringRecipe referenced by the call, if anyorg.openrewrite.java.OrderImports
mcpMatchCountintegerMatches returned by the call12
mcpChangeCountintegerChanges produced by the call3
mcpRunIdstringRun identifier, if the call triggered a run20260614101500-AbCdE
mcpResultBytesintegerSize of the result payload in bytes4096
mcpArgumentsstringTruncated (roughly 120 character) summary of the arguments passed to the tool. Not guaranteed to be parseable JSON, so do not apply json_extract to it.{"query":"order imports"}
mcpElapsedTimeMsintegerDuration in milliseconds540

Agent fields​

Populated by mod <agent> chat, one row per agent session. Agent rows have developer, cliVersion, and the agent columns, with no repository columns, no organization, and no trace tags. The session columns (agentSessionId through agentCostUnit) come from the agent's own transcript and are empty for agents whose transcript the CLI does not read.

agentPrompt records the full text of the session's initial prompt. Don't put credentials or other sensitive values in a prompt.

ColumnTypeDescriptionExample
agentOutcomestringSession resultSucceeded
agentStartTimeISO 8601Session start timestamp2026-09-16T14:02:11.410Z
agentEndTimeISO 8601Session end timestamp2026-09-16T14:31:48.902Z
agentIdstringmod <agent> chat command identifier20260916100211-Qw3Rt
agentSyncIdstringCommand identifier of the sync the session ran on20260916095502-Hk8Zp
agentNamestringAgent command that was runclaude
agentCommandstringAgent subcommand that started the sessionchat
agentVersionstringAgent's installed version, if known2.1.252
agentPromptstringInitial prompt of the sessionUpgrade every repository to Java 25
agentSessionIdstringAgent's own session identifier0c6f3e9a-...
agentTurnsintegerMessages the user sent, including the initial prompt4
agentInputTokensintegerInput tokens, including cached tokens1843220
agentCachedInputTokensintegerPortion of input tokens served from cache1712004
agentOutputTokensintegerOutput tokens38410
agentCostdecimalSession cost, as the agent accounts for it3.42
agentCostUnitstringUnit of agentCostUSD
agentElapsedTimeMsintegerDuration in milliseconds1777492

Search fields​

Search rows can come from two places:

  • The CLI. When you run mod search against a working set, the CLI will write one row for each search (starting in CLI 4.12.9). It'll write a row even if the search fails, for example because of a syntax error.
  • Moderne. When someone searches code in Moderne, Moderne will write one row for each page of results they ask for. For example, if someone loads three pages of results for one search, you'll get three rows. It will also write one row for each SQL query. This includes searches from the web UI, from mod search moderne://<organization>, and from the code search tools in the remote MCP server. You'll find these rows under source=saas.

If you point mod search at moderne://<organization>, the search will run in Moderne instead of on your machine. In that case, Moderne will write the row and the CLI won't write anything.

Search rows don't have the repository columns. They have developer, the search columns, and organization. A couple of things change depending on where the row came from:

  • Rows from the CLI will also have a cliVersion column. Their organization column will always be empty because a working set isn't an organization in Moderne.
  • Rows from Moderne won't have a cliVersion column. Their organization column will hold the organization that was searched. It'll come right after developer instead of at the end of the row.

searchQuery records the full query. Please don't paste credentials or other sensitive values into a search.

Columns in every search row​

ColumnTypeDescriptionExample
searchOutcomestringSearch resultSucceeded
searchStartTimeISO 8601Search start timestamp2026-11-13T16:20:04.118Z
searchEndTimeISO 8601Search end timestamp2026-11-13T16:20:04.903Z
searchSyntaxstringQuery syntax: sourcegraph or zoekt from the CLI, sourcegraph or sql from Modernesourcegraph
searchQuerystringThe query as it was run, up to 8,192 charactersJPAQuery lang:java
searchQueryTruncatedbooleanWhether the query was cut at 8,192 charactersfalse
searchFileCountintegerThe number of files with at least one match.

If the row came from Moderne, this will only count the files on one page of results. Moderne writes a separate row each time someone loads another page.

Empty for a failed search or a SQL query.
14
searchRepositoryCountintegerThe number of repositories with at least one match.

If the row came from Moderne, this will only count the repositories on one page of results. Moderne writes a separate row each time someone loads another page.

Empty for a failed search or a SQL query.
3
searchIndexedRepositoriesintegerThe number of repositories that had a search index.

Empty for a failed search.
9
searchOrganizationRepositoriesintegerThe number of repositories searched, indexed or not.

Empty for a failed search.
10
searchElapsedTimeMsintegerDuration in milliseconds785

If a search fails, the four count columns (searchFileCount through searchOrganizationRepositories) will be empty.

Search rows from Moderne​

Moderne will write one row for each page of results. In those rows, searchFileCount and searchRepositoryCount will only count what's on that page.

Rows from Moderne will also have a searchTool column:

ColumnTypeDescriptionExample
searchToolstringWhat ran the search: codeSearch, findTypes, findMethods, findImplementations, or usageExamples.

Empty for a SQL query.
findTypes

You can use searchTool to see what ran a search.

  • If the search came from the remote MCP server, searchTool will be the name of the tool that ran it (codeSearch, findTypes, findMethods, findImplementations, or usageExamples).
  • If the search came from the web UI or mod search, searchTool will also be codeSearch. You won't be able to tell those searches apart from the ones the remote MCP server's codeSearch tool made.

SQL queries​

Moderne will also write one row for each SQL query. In those rows, searchSyntax will be sql.

Rows from Moderne will also have these columns for SQL queries:

ColumnTypeDescriptionExample
searchRowCountintegerThe number of rows a SQL query returned.

Empty for a search or a failed SQL query.
42
searchCompletebooleanWhether a SQL query returned its full result.

false for a failed SQL query.

Empty for a search.
true
searchIncompleteReasonsstringWhy a SQL query's result isn't complete. Reasons are separated by a vertical bar.

Empty for a search.
RESULT_TRUNCATED
searchFailurestringTIMEOUT or QUERY_FAILED when a SQL query failed.

Empty otherwise.
TIMEOUT

Like search rows, navigate rows can come from two places:

  • The CLI. When you run mod navigate against a working set, the CLI will write one row for each command (starting in CLI 4.12.9). It'll write a row even if the navigation fails.
  • Moderne. When someone navigates code in Moderne, Moderne will write rows that count those navigations. This includes navigation in the web UI, mod navigate when it runs in Moderne, and the remote MCP server's codeNavigate and readFile tools. You'll find these rows under source=saas.

Navigate rows have the repository columns, developer, the navigate columns, and organization. As with search rows, a couple of things change depending on where the row came from:

  • Rows from the CLI will also have a cliVersion column. Their organization column will always be empty because a working set isn't an organization in Moderne.
  • Rows from Moderne won't have a cliVersion column. Their organization column will hold the organization the navigation ran in. It'll come right after developer instead of at the end of the row.

The repository columns tell you which repository the navigation happened in. If the CLI or Moderne can't tell which repository that is, those columns will be empty. For example, if you run a definition lookup from the root of a working set without --at or --in, the row won't have a repository.

Columns in every navigate row​

ColumnTypeDescriptionExample
navigateOutcomestringNavigation resultSucceeded
navigateStartTimeISO 8601Navigation start timestamp.

If the row came from Moderne, this will be when Moderne started counting navigations for the row. Moderne counts for about ten minutes and then writes the row.
2026-11-13T16:21:40.352Z
navigateEndTimeISO 8601Navigation end timestamp.

If the row came from Moderne, this will be when Moderne stopped counting and wrote the row.
2026-11-13T16:21:40.564Z
navigateOperationstringOperation: definition, read, or symbolsdefinition
navigateSourcestringWhere a definition lookup found the declaration: repository, organization, package, or none.

Empty for read and symbols, and for a failed navigation.
repository
navigateCountintegerThe number of navigations the row covers.

To count navigations, add this column up instead of counting rows.

Always 1 in rows from the CLI.
1
navigateMaxElapsedTimeMsintegerLongest navigation the row covers, in milliseconds212
navigateElapsedTimeMsintegerDuration in milliseconds.

In rows from Moderne, the total for every navigation the row covers.
212

You can use navigateSource to see where a definition lookup found the declaration.

  • repository means the declaration is in the repository the lookup was made in.
  • organization means it's in another repository. For rows from the CLI, that's another repository in the working set. For rows from Moderne, it's another repository in the organization.
  • package means it's in a dependency's sources. You'll only see this value in rows from Moderne.
  • none means the lookup didn't find a declaration.

navigateSource will be empty for read and symbols operations. It will also be empty for any navigation that failed.

mod navigate will run in Moderne instead of on your machine in any of these cases:

  • The target is moderne://<organization>.
  • The --in option names a package, such as org.springframework:spring-context:7.0.2.
  • A definition lookup needs Moderne to answer it. This will happen when the name comes from a dependency or from the language's SDK, or when no repository in the working set declares it.

Moderne won't write a row every time someone navigates like the CLI does. Instead, it will keep a count. Every ten minutes or so, it will write the counts out as rows and start counting again. Each time, you'll get one row for each combination of operation, organization, developer, repository, navigateSource, and outcome.

For example, say Moderne writes rows at 2:00 and again at 2:10. In between, you look up a definition seven times in the same repository. The row written at 2:10 will have a navigateStartTime of 2:00, a navigateEndTime of 2:10, and a navigateCount of 7.

To find out how many navigations there were, you'll need to add up navigateCount instead of counting rows.

Rows from Moderne also won't tell you whether a navigation came from the web UI, the CLI, or the remote MCP server.

If there are more combinations than Moderne can keep track of, Moderne will count the rest in one row. That row's developer, organization, repository, and navigateSource will be empty.

Organization and trace tags​

organization is the last of the stage columns.

ColumnTypeDescriptionExample
organizationstringModerne organization the command ran withinALL/Company/Team

If you run a command with trace tags, each tag adds one column named tag.<key>, appended after organization. Running mod exec --trace-tag team=docs produces a row ending:

...,execElapsedTimeMs,organization,tag.team

Tag columns vary by who ran the command and with what tags, so treat them as optional and read them by name.