[{"data":1,"prerenderedAt":608,"buildId":609},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry":3},{"id":4,"title":5,"body":6,"description":589,"extension":590,"frontmatter":591,"heading":597,"meta":599,"navigation":601,"order":595,"path":602,"seo":603,"sitemap":604,"source":605,"stem":606,"__hash__":607},"docs\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","Telemetry - What Kubb sends and how to opt out",{"type":7,"value":8,"toc":581},"minimark",[9,13,34,39,43,46,106,127,131,144,416,437,494,498,514,520,523,527,539,572],[10,11,12],"p",{},"The Kubb CLI sends anonymous data about each run: which command, which plugins and the shape of their options, how long it took, and whether it succeeded.",[14,15,17,18,22,23,26,27,22,30,33],"blockquote",{"as":16},"important","Telemetry is on by default. Set ",[19,20,21],"code",{},"DO_NOT_TRACK"," or ",[19,24,25],{},"KUBB_DISABLE_TELEMETRY"," to ",[19,28,29],{},"1",[19,31,32],{},"true"," to turn it off.",[35,36,38],"h2",{"id":37},"when-kubb-sends-it","When Kubb sends it",[40,41],"mermaid",{"svg":42},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-sequence\" viewBox=\"0 0 659 351\" width=\"659\" height=\"351\" style=\"--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"sequence\">\u003Cg transform=\"translate(40,8)\">\u003Cg class=\"pele-lifelines\" fill=\"none\" stroke=\"var(--_b)\">\u003Cpath class=\"pele-lifeline\" data-id=\"U\" d=\"M0,44V291\"\u002F>\u003Cpath class=\"pele-lifeline\" data-id=\"C\" d=\"M132.81,44V291\"\u002F>\u003Cpath class=\"pele-lifeline\" data-id=\"S\" d=\"M371.49,44V291\"\u002F>\u003Cpath class=\"pele-lifeline\" data-id=\"O\" d=\"M547.1,44V291\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\">\u003Cg class=\"pele-edge pele-message\" data-id=\"i0\">\u003Cpath d=\"M0,87H125.81\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M132.81,87L124.81,90.36L124.81,83.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i1\">\u003Cpath d=\"M132.81,124H7\" stroke-dasharray=\"4 4\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M0,124L8,120.64L8,127.36Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i2\">\u003Cpath d=\"M132.81,138H154.81A6,6 0 0 1 160.81,144V154A6,6 0 0 1 154.81,160H139.81\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M132.81,160L140.81,156.64L140.81,163.36Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i3\">\u003Cpath d=\"M132.81,197H364.49\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M371.49,197L363.49,200.36L363.49,193.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i4\">\u003Cpath d=\"M132.81,234H7\" stroke-dasharray=\"4 4\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M0,234L8,230.64L8,237.36Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i5\">\u003Cpath d=\"M371.49,271H540.1\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M547.1,271L539.1,274.36L539.1,267.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-edge-labels\" font-size=\"14\">\u003Cg class=\"pele-edge-label\" data-id=\"i0\">\u003Ctext x=\"66.41\" y=\"77.4\" text-anchor=\"middle\">kubb generate\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i1\">\u003Ctext x=\"66.41\" y=\"114.4\" text-anchor=\"middle\">Notice on stderr\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i2\">\u003Ctext x=\"226\" y=\"153.9\" text-anchor=\"middle\">Run the command\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i3\">\u003Ctext x=\"252.15\" y=\"187.4\" text-anchor=\"middle\">Start detached, pass the payload\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i4\">\u003Ctext x=\"66.41\" y=\"224.4\" text-anchor=\"middle\">Exit\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i5\">\u003Ctext x=\"459.3\" y=\"261.4\" text-anchor=\"middle\">POST \u002Fv1\u002Ftraces\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"U\">\u003Crect x=\"-32\" y=\"291\" width=\"64\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"318.6\" text-anchor=\"middle\">You\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"C\">\u003Crect x=\"83.46\" y=\"291\" width=\"98.7\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"132.81\" y=\"318.6\" text-anchor=\"middle\">Kubb CLI\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"S\">\u003Crect x=\"299.47\" y=\"291\" width=\"144.05\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"371.49\" y=\"318.6\" text-anchor=\"middle\">Sender process\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"O\">\u003Crect x=\"483.52\" y=\"291\" width=\"127.17\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"547.1\" y=\"318.6\" text-anchor=\"middle\">otlp.kubb.dev\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"U\">\u003Crect x=\"-32\" y=\"0\" width=\"64\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"27.6\" text-anchor=\"middle\">You\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"C\">\u003Crect x=\"83.46\" y=\"0\" width=\"98.7\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"132.81\" y=\"27.6\" text-anchor=\"middle\">Kubb CLI\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"S\">\u003Crect x=\"299.47\" y=\"0\" width=\"144.05\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"371.49\" y=\"27.6\" text-anchor=\"middle\">Sender process\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"O\">\u003Crect x=\"483.52\" y=\"0\" width=\"127.17\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"547.1\" y=\"27.6\" text-anchor=\"middle\">otlp.kubb.dev\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[10,44,45],{},"A detached process sends the request, so the CLI exits without waiting. The request fails silently after 5 seconds, so an offline machine never interrupts a run.",[47,48,49,62],"table",{},[50,51,52],"thead",{},[53,54,55,59],"tr",{},[56,57,58],"th",{},"Command",[56,60,61],{},"Sends one event",[63,64,65,76,86,96],"tbody",{},[53,66,67,73],{},[68,69,70],"td",{},[19,71,72],{},"kubb generate",[68,74,75],{},"Per config, when that config finishes or fails",[53,77,78,83],{},[68,79,80],{},[19,81,82],{},"kubb validate",[68,84,85],{},"When validation finishes or fails",[53,87,88,93],{},[68,89,90],{},[19,91,92],{},"kubb mcp",[68,94,95],{},"When an MCP client connects, or when the server fails to start",[53,97,98,103],{},[68,99,100],{},[19,101,102],{},"kubb studio",[68,104,105],{},"When the Studio command finishes or fails",[10,107,108,109,112,113,112,116,112,119,122,123,126],{},"Each command prints a telemetry notice to stderr when it starts. ",[19,110,111],{},"--help",", ",[19,114,115],{},"-h",[19,117,118],{},"--version",[19,120,121],{},"-v",", and ",[19,124,125],{},"--json"," skip it.",[35,128,130],{"id":129},"what-is-collected","What is collected",[10,132,133,134,139,140,143],{},"Each event is an ",[135,136,138],"a",{"href":137},"https:\u002F\u002Fopentelemetry.io\u002Fdocs\u002Flanguages\u002Fsdk-configuration\u002Fotlp-exporter\u002F","OpenTelemetry OTLP"," trace with one span, sent as JSON to ",[19,141,142],{},"https:\u002F\u002Fotlp.kubb.dev\u002Fv1\u002Ftraces",". The span carries the command as its name, the run's start and end times, an OK or error status, and random trace and span ids.",[47,145,146,159],{},[50,147,148],{},[53,149,150,153,156],{},[56,151,152],{},"Span attribute",[56,154,155],{},"Value",[56,157,158],{},"Example",[63,160,161,176,191,206,227,241,262,276,290,305,323,345,363,378,397],{},[53,162,163,168,171],{},[68,164,165],{},[19,166,167],{},"kubb.command",[68,169,170],{},"The command",[68,172,173],{},[19,174,175],{},"\"generate\"",[53,177,178,183,186],{},[68,179,180],{},[19,181,182],{},"kubb.version",[68,184,185],{},"The Kubb CLI version",[68,187,188],{},[19,189,190],{},"\"5.0.0\"",[53,192,193,198,201],{},[68,194,195],{},[19,196,197],{},"kubb.node_version",[68,199,200],{},"The Node.js major version",[68,202,203],{},[19,204,205],{},"\"22\"",[53,207,208,213,216],{},[68,209,210],{},[19,211,212],{},"kubb.runtime",[68,214,215],{},"The JavaScript runtime",[68,217,218,112,221,112,224],{},[19,219,220],{},"\"node\"",[19,222,223],{},"\"bun\"",[19,225,226],{},"\"deno\"",[53,228,229,234,237],{},[68,230,231],{},[19,232,233],{},"kubb.runtime_version",[68,235,236],{},"The runtime major version",[68,238,239],{},[19,240,205],{},[53,242,243,248,251],{},[68,244,245],{},[19,246,247],{},"kubb.platform",[68,249,250],{},"The operating system",[68,252,253,112,256,112,259],{},[19,254,255],{},"\"linux\"",[19,257,258],{},"\"darwin\"",[19,260,261],{},"\"win32\"",[53,263,264,269,272],{},[68,265,266],{},[19,267,268],{},"kubb.ci",[68,270,271],{},"Whether the run is in CI",[68,273,274],{},[19,275,32],{},[53,277,278,283,286],{},[68,279,280],{},[19,281,282],{},"kubb.tty",[68,284,285],{},"Whether stdin is a terminal, which usually means a person typed the command",[68,287,288],{},[19,289,32],{},[53,291,292,297,300],{},[68,293,294],{},[19,295,296],{},"kubb.agent",[68,298,299],{},"The AI coding agent that ran the command, when Kubb detects one",[68,301,302],{},[19,303,304],{},"\"claude\"",[53,306,307,312,318],{},[68,308,309],{},[19,310,311],{},"kubb.mcp_client",[68,313,314,315,317],{},"The name the MCP client reports, up to 64 characters. ",[19,316,92],{}," only.",[68,319,320],{},[19,321,322],{},"\"claude-code\"",[53,324,325,330,340],{},[68,326,327],{},[19,328,329],{},"kubb.files_created",[68,331,332,333,336,337,339],{},"Files generated. ",[19,334,335],{},"0"," outside ",[19,338,72],{},".",[68,341,342],{},[19,343,344],{},"47",[53,346,347,352,355],{},[68,348,349],{},[19,350,351],{},"kubb.status",[68,353,354],{},"The outcome",[68,356,357,112,360],{},[19,358,359],{},"\"success\"",[19,361,362],{},"\"failed\"",[53,364,365,370,373],{},[68,366,367],{},[19,368,369],{},"kubb.plugins",[68,371,372],{},"The plugin names, sorted",[68,374,375],{},[19,376,377],{},"[\"plugin-ts\", \"plugin-zod\"]",[53,379,380,385,393],{},[68,381,382],{},[19,383,384],{},"kubb.plugin.\u003Cname>",[68,386,387,389,390],{},[19,388,32],{}," for each plugin, such as ",[19,391,392],{},"kubb.plugin.plugin-ts",[68,394,395],{},[19,396,32],{},[53,398,399,404,411],{},[68,400,401],{},[19,402,403],{},"kubb.plugin_options",[68,405,406,407,410],{},"Each plugin's ",[19,408,409],{},"name"," and the shape of its options as a JSON string",[68,412,413],{},[19,414,415],{},"{ \"name\": \"plugin-ts\", \"options\": \"{\\\"output\\\":{\\\"path\\\":\\\"string\\\",\\\"clean\\\":true},\\\"enumType\\\":\\\"asConst\\\"}\" }",[10,417,418,419,112,422,425,426,429,430,433,434,339],{},"The resource attributes are ",[19,420,421],{},"service.name: \"kubb\"",[19,423,424],{},"service.version"," (the Kubb version), and ",[19,427,428],{},"telemetry.sdk.language: \"nodejs\"",". The request carries the headers ",[19,431,432],{},"Kubb-Telemetry-Version: 1"," and ",[19,435,436],{},"Kubb-Telemetry-Source: kubb-cli",[14,438,440,441,443,444,22,447,450,451,112,454,457,458,461,462,465,466,469,470,473,474,112,477,22,480,483,484,486,487,22,489,26,491,493],{"as":439},"warning","",[19,442,403],{}," holds the shape of the options, not their values. Booleans, numbers and enum-like strings keep their value. An enum-like string is one word of letters and digits, up to 32 characters, such as ",[19,445,446],{},"asConst",[19,448,449],{},"camelcase",". Every other value becomes its type name: a string such as ",[19,452,453],{},"output.path",[19,455,456],{},"baseURL"," or a ",[19,459,460],{},"banner"," is sent as ",[19,463,464],{},"\"string\"",", an array as ",[19,467,468],{},"\"array\"",", and a function as ",[19,471,472],{},"\"function\"",". A string under a key that names a secret, such as ",[19,475,476],{},"token",[19,478,479],{},"password",[19,481,482],{},"apiKey",", is always sent as ",[19,485,464],{},". Object keys are sent as written, so an option object keyed by file paths or other names sends those keys. Set ",[19,488,21],{},[19,490,25],{},[19,492,29],{}," to send nothing.",[35,495,497],{"id":496},"what-is-not-collected","What is not collected",[499,500,501,505,508,511],"ul",{},[502,503,504],"li",{},"The spec contents",[502,506,507],{},"The input path, the project root, or the names of generated files",[502,509,510],{},"Source code or generated code",[502,512,513],{},"A user, machine, or project identifier",[10,515,516,517,519],{},"The one exception is an object key in ",[19,518,403],{},", which is sent as written. See the warning above.",[10,521,522],{},"Kubb does not read environment variables or credential files for telemetry.",[35,524,526],{"id":525},"how-to-opt-out","How to opt out",[10,528,529,530,22,532,26,534,22,536,538],{},"Set ",[19,531,21],{},[19,533,25],{},[19,535,29],{},[19,537,32],{},". Kubb then sends nothing and prints no notice.",[540,541,546],"pre",{"language":542,"filename":543,"code":544,"class":545},"shell","Terminal","DO_NOT_TRACK=1 kubb generate","highlights",[19,547,549],{"class":548},"language-shell",[550,551,554,557,561,565,569],"span",{"class":552,"style":553},"line","display: inline",[550,555,21],{"style":556},"color:#24292e;--hls-dark:#e1e4e8",[550,558,560],{"style":559},"color:#d73a49;--hls-dark:#f97583","=",[550,562,564],{"style":563},"color:#005cc5;--hls-dark:#79b8ff","1 ",[550,566,568],{"style":567},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[550,570,571],{"style":556},"generate",[10,573,574,576,577,339],{},[19,575,21],{}," follows ",[135,578,580],{"href":579},"https:\u002F\u002Fconsoledonottrack.com\u002F","Console Do Not Track",{"title":440,"searchDepth":582,"depth":582,"links":583},5,[584,586,587,588],{"id":37,"depth":585,"text":38},2,{"id":129,"depth":585,"text":130},{"id":496,"depth":585,"text":497},{"id":525,"depth":585,"text":526},"What anonymous usage data the Kubb CLI sends, when it sends it, the exact OTLP fields, and how to opt out with DO_NOT_TRACK or KUBB_DISABLE_TELEMETRY.","md",{"layout":592,"title":5,"description":589,"outline":593,"order":595,"navigation":596},"doc",[585,594],3,6,{"title":597,"icon":598},"Telemetry","i-iconoir-antenna",{"layout":592,"outline":600},[585,594],{"title":597,"icon":598},"\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry",{"title":5,"description":589},{"loc":602},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","docs\u002F5.x\u002Freference\u002Ftelemetry","R-ZZMn3w-_t2Wq7FfMJpHlsYrc9CwNZ4yCGbigAt6Ss",1795727675984,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]