{"action":"created","issue":{"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/7759","labels_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/7759/labels{/name}","comments_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/7759/comments","events_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/7759/events","html_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/7759","id":104678309,"number":7759,"title":"HPCC-12872 TRACE activity","user":{"login":"richardkchapman","id":900820,"avatar_url":"https://avatars.githubusercontent.com/u/900820?v=3","gravatar_id":"","url":"https://api.github.com/users/richardkchapman","html_url":"https://github.com/richardkchapman","followers_url":"https://api.github.com/users/richardkchapman/followers","following_url":"https://api.github.com/users/richardkchapman/following{/other_user}","gists_url":"https://api.github.com/users/richardkchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/richardkchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardkchapman/subscriptions","organizations_url":"https://api.github.com/users/richardkchapman/orgs","repos_url":"https://api.github.com/users/richardkchapman/repos","events_url":"https://api.github.com/users/richardkchapman/events{/privacy}","received_events_url":"https://api.github.com/users/richardkchapman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T12:19:16Z","updated_at":"2015-09-03T12:19:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/7759","html_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/7759","diff_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/7759.diff","patch_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/7759.patch"},"body":"This initial version ofthe TRACEactivity is implemented in the code-generator\r\nand Roxie only. Thor and hThor implementations should be trivial.\r\n\r\nSyntax is:\r\n\r\nmyds := TRACE(ds [, traceOptions]);\r\n\r\nThe available options are:\r\n\r\n - Zero or more expressions, which act as a filter. Only rows matching the\r\n   filter will be included in the tracing\r\n - KEEP (n) indicating how many rows will be traced\r\n - SKIP (n) indicating that n rows will be skipped before tracing starts\r\n - SAMPLE (n) indicating that only every nth row is traced\r\n - NAMED(string) providing the name for the rows in the tracing.\r\n\r\nTracing is output to the log file, in the form\r\n TRACE: <name><fieldname>value</fieldname>...</name>\r\n\r\nTracing is not output by default even if trace statements are present - only\r\nif the workunit debug value traceEnabled is set or if the default platform\r\nsettings are changed to always output tracing. In Roxie you can also request\r\ntracing on a deployed query by specifying traceEnabled=1 in the query XML. It\r\nis therefore possible to leave trace statements in the ECL without any\r\ndetectable overhead until tracing is enabled.\r\n\r\nIt is also possible to override the default value for KEEP at a global,\r\nper-workunit, or per-query level.\r\n\r\nSigned-off-by: Richard Chapman <rchapman@hpccsystems.com>"},"comment":{"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/comments/137419997","html_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/7759#issuecomment-137419997","issue_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/7759","id":137419997,"user":{"login":"richardkchapman","id":900820,"avatar_url":"https://avatars.githubusercontent.com/u/900820?v=3","gravatar_id":"","url":"https://api.github.com/users/richardkchapman","html_url":"https://github.com/richardkchapman","followers_url":"https://api.github.com/users/richardkchapman/followers","following_url":"https://api.github.com/users/richardkchapman/following{/other_user}","gists_url":"https://api.github.com/users/richardkchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/richardkchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardkchapman/subscriptions","organizations_url":"https://api.github.com/users/richardkchapman/orgs","repos_url":"https://api.github.com/users/richardkchapman/repos","events_url":"https://api.github.com/users/richardkchapman/events{/privacy}","received_events_url":"https://api.github.com/users/richardkchapman/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T12:19:30Z","updated_at":"2015-09-03T12:19:30Z","body":"@ghalliday First cut for review."}}