[{"data":1,"prerenderedAt":478},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry":3},{"id":4,"title":5,"body":6,"description":460,"extension":461,"frontmatter":462,"heading":5,"meta":468,"navigation":470,"order":465,"path":471,"seo":472,"sitemap":473,"source":474,"stem":475,"__hash__":476,"hasPopups":477},"docs\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","Telemetry",{"type":7,"value":8,"toc":448},"minimark",[9,13,27,32,35,297,302,345,349,352,371,375,389,421,432,436],[10,11,12],"p",{},"The Kubb CLI collects anonymous command, plugin, and performance data.",[14,15,17,18,22,23,26],"blockquote",{"as":16},"important","Telemetry is enabled by default. Disable it any time with the ",[19,20,21],"code",{},"DO_NOT_TRACK"," or ",[19,24,25],{},"KUBB_DISABLE_TELEMETRY"," environment variable.",[28,29,31],"h2",{"id":30},"what-is-collected","What is collected",[10,33,34],{},"Telemetry includes these fields:",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Field",[45,49,50],{},"Description",[45,52,53],{},"Example",[55,56,57,80,95,110,131,145,166,181,195,210,232,250,265,282],"tbody",{},[42,58,59,65,68],{},[60,61,62],"td",{},[19,63,64],{},"command",[60,66,67],{},"CLI command that was run",[60,69,70,73,74,73,77],{},[19,71,72],{},"\"generate\"",", ",[19,75,76],{},"\"validate\"",[19,78,79],{},"\"mcp\"",[42,81,82,87,90],{},[60,83,84],{},[19,85,86],{},"kubbVersion",[60,88,89],{},"Kubb CLI version",[60,91,92],{},[19,93,94],{},"\"5.0.0\"",[42,96,97,102,105],{},[60,98,99],{},[19,100,101],{},"nodeVersion",[60,103,104],{},"Node.js major version",[60,106,107],{},[19,108,109],{},"\"22\"",[42,111,112,117,120],{},[60,113,114],{},[19,115,116],{},"runtime",[60,118,119],{},"JavaScript runtime name",[60,121,122,73,125,73,128],{},[19,123,124],{},"\"node\"",[19,126,127],{},"\"bun\"",[19,129,130],{},"\"deno\"",[42,132,133,138,141],{},[60,134,135],{},[19,136,137],{},"runtimeVersion",[60,139,140],{},"Runtime major version",[60,142,143],{},[19,144,109],{},[42,146,147,152,155],{},[60,148,149],{},[19,150,151],{},"platform",[60,153,154],{},"Operating system",[60,156,157,73,160,73,163],{},[19,158,159],{},"\"linux\"",[19,161,162],{},"\"darwin\"",[19,164,165],{},"\"win32\"",[42,167,168,173,176],{},[60,169,170],{},[19,171,172],{},"ci",[60,174,175],{},"Whether running in CI",[60,177,178],{},[19,179,180],{},"true",[42,182,183,188,191],{},[60,184,185],{},[19,186,187],{},"tty",[60,189,190],{},"Whether a terminal is attached to stdin, which usually means a person typed the command",[60,192,193],{},[19,194,180],{},[42,196,197,202,205],{},[60,198,199],{},[19,200,201],{},"agent",[60,203,204],{},"Name of the AI coding agent that ran the command, if any",[60,206,207],{},[19,208,209],{},"\"claude\"",[42,211,212,217,224],{},[60,213,214],{},[19,215,216],{},"mcpClient",[60,218,219,220,223],{},"Name the MCP client reports when it connects (only for ",[19,221,222],{},"mcp",")",[60,225,226,73,229],{},[19,227,228],{},"\"claude-code\"",[19,230,231],{},"\"cursor-vscode\"",[42,233,234,239,245],{},[60,235,236],{},[19,237,238],{},"plugins",[60,240,241,242,223],{},"Plugin names and their options (only for ",[19,243,244],{},"generate",[60,246,247],{},[19,248,249],{},"[{ \"name\": \"@kubb\u002Fplugin-ts\", \"options\": { \"output\": { \"path\": \"types\" } } }]",[42,251,252,257,260],{},[60,253,254],{},[19,255,256],{},"duration",[60,258,259],{},"Command execution time in milliseconds",[60,261,262],{},[19,263,264],{},"1432",[42,266,267,272,277],{},[60,268,269],{},[19,270,271],{},"filesCreated",[60,273,274,275,223],{},"Number of files generated (only for ",[19,276,244],{},[60,278,279],{},[19,280,281],{},"47",[42,283,284,289,292],{},[60,285,286],{},[19,287,288],{},"status",[60,290,291],{},"Whether the command succeeded or failed",[60,293,294],{},[19,295,296],{},"\"success\"",[298,299,301],"h3",{"id":300},"commands-that-send-telemetry","Commands that send telemetry",[36,303,304,313],{},[39,305,306],{},[42,307,308,311],{},[45,309,310],{},"Command",[45,312,50],{},[55,314,315,325,335],{},[42,316,317,322],{},[60,318,319],{},[19,320,321],{},"kubb generate",[60,323,324],{},"Sent after code generation completes or fails",[42,326,327,332],{},[60,328,329],{},[19,330,331],{},"kubb validate",[60,333,334],{},"Sent after OpenAPI validation completes or fails",[42,336,337,342],{},[60,338,339],{},[19,340,341],{},"kubb mcp",[60,343,344],{},"Sent when an MCP client connects, or when the server fails to start",[28,346,348],{"id":347},"what-is-not-collected","What is not collected",[10,350,351],{},"Kubb never sends:",[353,354,355,359,362,365,368],"ul",{},[356,357,358],"li",{},"OpenAPI specification contents",[356,360,361],{},"File paths or directory structures",[356,363,364],{},"Secrets, API keys, or tokens",[356,366,367],{},"Source code or generated code",[356,369,370],{},"IP addresses or user identifiers",[28,372,374],{"id":373},"how-to-opt-out","How to opt out",[10,376,377,378,22,380,382,383,22,386,388],{},"Set ",[19,379,21],{},[19,381,25],{}," to ",[19,384,385],{},"1",[19,387,180],{},":",[390,391,396],"pre",{"language":392,"filename":393,"code":394,"class":395},"shell","Terminal","DO_NOT_TRACK=1 kubb generate","shiki shiki-themes github-light github-dark dark:github-dark",[19,397,399],{"class":398},"language-shell",[400,401,404,407,411,414,418],"span",{"class":402,"style":403},"line","display: inline",[400,405,21],{"style":406},"color:#24292E;--shiki-dark:#E1E4E8",[400,408,410],{"style":409},"color:#D73A49;--shiki-dark:#F97583","=",[400,412,385],{"style":413},"color:#032F62;--shiki-dark:#9ECBFF",[400,415,417],{"style":416},"color:#6F42C1;--shiki-dark:#B392F0"," kubb",[400,419,420],{"style":413}," generate",[10,422,423,425,426,431],{},[19,424,21],{}," follows the ",[427,428,430],"a",{"href":429},"https:\u002F\u002Fconsoledonottrack.com\u002F","cross-tool convention",".",[28,433,435],{"id":434},"data-transmission","Data transmission",[10,437,438,439,443,444,447],{},"Telemetry is formatted as ",[427,440,442],{"href":441},"https:\u002F\u002Fopentelemetry.io\u002Fdocs\u002Flanguages\u002Fsdk-configuration\u002Fotlp-exporter\u002F","OpenTelemetry OTLP"," traces. Kubb sends them to ",[19,445,446],{},"https:\u002F\u002Fotlp.kubb.dev\u002Fv1\u002Ftraces"," at the end of each command. The request fires only when you are online. It times out after 5 seconds and fails silently if anything goes wrong.",{"title":449,"searchDepth":450,"depth":450,"links":451},"",5,[452,457,458,459],{"id":30,"depth":453,"text":31,"children":454},2,[455],{"id":300,"depth":456,"text":301},3,{"id":347,"depth":453,"text":348},{"id":373,"depth":453,"text":374},{"id":434,"depth":453,"text":435},"Learn what anonymous usage data Kubb collects, how to opt out, and how the data improves the tool.","md",{"layout":463,"title":5,"description":460,"outline":464,"order":465,"navigation":466},"doc",[453,456],6,{"title":5,"icon":467},"i-iconoir-antenna",{"layout":463,"outline":469},[453,456],{"title":5,"icon":467},"\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry",{"title":5,"description":460},{"loc":471},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","docs\u002F5.x\u002Freference\u002Ftelemetry","n7dfOQTw3qaR2u_OQMTbILfh3AGecNIL_tQRUjx8pts",false,1792750764612]