[{"data":1,"prerenderedAt":632,"buildId":633},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry":3},{"id":4,"title":5,"body":6,"description":613,"extension":614,"frontmatter":615,"heading":621,"meta":623,"navigation":625,"order":619,"path":626,"seo":627,"sitemap":628,"source":629,"stem":630,"__hash__":631},"docs\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","Telemetry - What Kubb sends and how to opt out",{"type":7,"value":8,"toc":605},"minimark",[9,13,34,39,43,46,110,131,135,148,420,441,498,502,518,524,527,531,543,563,596],[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,80,90,100],"tbody",{},[53,66,67,73],{},[68,69,70],"td",{},[19,71,72],{},"kubb generate",[68,74,75,76,79],{},"Per run, once every config finishes, with the plugins of each. ",[19,77,78],{},"--watch"," sends one for its first build only",[53,81,82,87],{},[68,83,84],{},[19,85,86],{},"kubb validate",[68,88,89],{},"When validation finishes or fails",[53,91,92,97],{},[68,93,94],{},[19,95,96],{},"kubb mcp",[68,98,99],{},"When an MCP client connects, or when the server fails to start",[53,101,102,107],{},[68,103,104],{},[19,105,106],{},"kubb studio",[68,108,109],{},"When the Studio command finishes or fails",[10,111,112,113,116,117,116,120,116,123,126,127,130],{},"Each command prints a telemetry notice to stderr when it starts. ",[19,114,115],{},"--help",", ",[19,118,119],{},"-h",[19,121,122],{},"--version",[19,124,125],{},"-v",", and ",[19,128,129],{},"--json"," skip it.",[35,132,134],{"id":133},"what-is-collected","What is collected",[10,136,137,138,143,144,147],{},"Each event is an ",[139,140,142],"a",{"href":141},"https:\u002F\u002Fopentelemetry.io\u002Fdocs\u002Flanguages\u002Fsdk-configuration\u002Fotlp-exporter\u002F","OpenTelemetry OTLP"," trace with one span, sent as JSON to ",[19,145,146],{},"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,149,150,163],{},[50,151,152],{},[53,153,154,157,160],{},[56,155,156],{},"Span attribute",[56,158,159],{},"Value",[56,161,162],{},"Example",[63,164,165,180,195,210,231,245,266,280,294,309,327,349,367,382,401],{},[53,166,167,172,175],{},[68,168,169],{},[19,170,171],{},"kubb.command",[68,173,174],{},"The command",[68,176,177],{},[19,178,179],{},"\"generate\"",[53,181,182,187,190],{},[68,183,184],{},[19,185,186],{},"kubb.version",[68,188,189],{},"The Kubb CLI version",[68,191,192],{},[19,193,194],{},"\"5.0.0\"",[53,196,197,202,205],{},[68,198,199],{},[19,200,201],{},"kubb.node_version",[68,203,204],{},"The Node.js major version",[68,206,207],{},[19,208,209],{},"\"22\"",[53,211,212,217,220],{},[68,213,214],{},[19,215,216],{},"kubb.runtime",[68,218,219],{},"The JavaScript runtime",[68,221,222,116,225,116,228],{},[19,223,224],{},"\"node\"",[19,226,227],{},"\"bun\"",[19,229,230],{},"\"deno\"",[53,232,233,238,241],{},[68,234,235],{},[19,236,237],{},"kubb.runtime_version",[68,239,240],{},"The runtime major version",[68,242,243],{},[19,244,209],{},[53,246,247,252,255],{},[68,248,249],{},[19,250,251],{},"kubb.platform",[68,253,254],{},"The operating system",[68,256,257,116,260,116,263],{},[19,258,259],{},"\"linux\"",[19,261,262],{},"\"darwin\"",[19,264,265],{},"\"win32\"",[53,267,268,273,276],{},[68,269,270],{},[19,271,272],{},"kubb.ci",[68,274,275],{},"Whether the run is in CI",[68,277,278],{},[19,279,32],{},[53,281,282,287,290],{},[68,283,284],{},[19,285,286],{},"kubb.tty",[68,288,289],{},"Whether stdin is a terminal, which usually means a person typed the command",[68,291,292],{},[19,293,32],{},[53,295,296,301,304],{},[68,297,298],{},[19,299,300],{},"kubb.agent",[68,302,303],{},"The AI coding agent that ran the command, when Kubb detects one",[68,305,306],{},[19,307,308],{},"\"claude\"",[53,310,311,316,322],{},[68,312,313],{},[19,314,315],{},"kubb.mcp_client",[68,317,318,319,321],{},"The name the MCP client reports, up to 64 characters. ",[19,320,96],{}," only.",[68,323,324],{},[19,325,326],{},"\"claude-code\"",[53,328,329,334,344],{},[68,330,331],{},[19,332,333],{},"kubb.files_created",[68,335,336,337,340,341,343],{},"Files generated. ",[19,338,339],{},"0"," outside ",[19,342,72],{},".",[68,345,346],{},[19,347,348],{},"47",[53,350,351,356,359],{},[68,352,353],{},[19,354,355],{},"kubb.status",[68,357,358],{},"The outcome",[68,360,361,116,364],{},[19,362,363],{},"\"success\"",[19,365,366],{},"\"failed\"",[53,368,369,374,377],{},[68,370,371],{},[19,372,373],{},"kubb.plugins",[68,375,376],{},"The plugin names, sorted",[68,378,379],{},[19,380,381],{},"[\"plugin-ts\", \"plugin-zod\"]",[53,383,384,389,397],{},[68,385,386],{},[19,387,388],{},"kubb.plugin.\u003Cname>",[68,390,391,393,394],{},[19,392,32],{}," for each plugin, such as ",[19,395,396],{},"kubb.plugin.plugin-ts",[68,398,399],{},[19,400,32],{},[53,402,403,408,415],{},[68,404,405],{},[19,406,407],{},"kubb.plugin_options",[68,409,410,411,414],{},"Each plugin's ",[19,412,413],{},"name"," and the shape of its options as a JSON string",[68,416,417],{},[19,418,419],{},"{ \"name\": \"plugin-ts\", \"options\": \"{\\\"output\\\":{\\\"path\\\":\\\"string\\\",\\\"clean\\\":true},\\\"enumType\\\":\\\"asConst\\\"}\" }",[10,421,422,423,116,426,429,430,433,434,437,438,343],{},"The resource attributes are ",[19,424,425],{},"service.name: \"kubb\"",[19,427,428],{},"service.version"," (the Kubb version), and ",[19,431,432],{},"telemetry.sdk.language: \"nodejs\"",". The request carries the headers ",[19,435,436],{},"Kubb-Telemetry-Version: 1"," and ",[19,439,440],{},"Kubb-Telemetry-Source: kubb-cli",[14,442,444,445,447,448,22,451,454,455,116,458,461,462,465,466,469,470,473,474,477,478,116,481,22,484,487,488,490,491,22,493,26,495,497],{"as":443},"warning","",[19,446,407],{}," 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,449,450],{},"asConst",[19,452,453],{},"camelcase",". Every other value becomes its type name: a string such as ",[19,456,457],{},"output.path",[19,459,460],{},"baseURL"," or a ",[19,463,464],{},"banner"," is sent as ",[19,467,468],{},"\"string\"",", an array as ",[19,471,472],{},"\"array\"",", and a function as ",[19,475,476],{},"\"function\"",". A string under a key that names a secret, such as ",[19,479,480],{},"token",[19,482,483],{},"password",[19,485,486],{},"apiKey",", is always sent as ",[19,489,468],{},". Object keys are sent as written, so an option object keyed by file paths or other names sends those keys. Set ",[19,492,21],{},[19,494,25],{},[19,496,29],{}," to send nothing.",[35,499,501],{"id":500},"what-is-not-collected","What is not collected",[503,504,505,509,512,515],"ul",{},[506,507,508],"li",{},"The spec contents",[506,510,511],{},"The input path, the project root, or the names of generated files",[506,513,514],{},"Source code or generated code",[506,516,517],{},"A user, machine, or project identifier",[10,519,520,521,523],{},"The one exception is an object key in ",[19,522,407],{},", which is sent as written. See the warning above.",[10,525,526],{},"Kubb does not read environment variables or credential files for telemetry.",[35,528,530],{"id":529},"how-to-opt-out","How to opt out",[10,532,533,534,22,536,26,538,22,540,542],{},"Set ",[19,535,21],{},[19,537,25],{},[19,539,29],{},[19,541,32],{},". Kubb then sends nothing and prints no notice.",[10,544,545,546,550,551,437,553,555,556,437,559,562],{},"The CLI asks its ",[139,547,549],{"href":548},"\u002Fdocs\u002F5.x\u002Freference\u002Fsecurity","security rules"," whether the telemetry host is allowed, and ",[19,552,21],{},[19,554,25],{}," deny it. The request itself is sent by a separate process, so ",[19,557,558],{},"net.proxy",[19,560,561],{},"net.transport"," do not apply to it.",[564,565,570],"pre",{"language":566,"filename":567,"code":568,"class":569},"shell","Terminal","DO_NOT_TRACK=1 kubb generate","highlights",[19,571,573],{"class":572},"language-shell",[574,575,578,581,585,589,593],"span",{"class":576,"style":577},"line","display: inline",[574,579,21],{"style":580},"color:#24292e;--hls-dark:#e1e4e8",[574,582,584],{"style":583},"color:#d73a49;--hls-dark:#f97583","=",[574,586,588],{"style":587},"color:#005cc5;--hls-dark:#79b8ff","1 ",[574,590,592],{"style":591},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[574,594,595],{"style":580},"generate",[10,597,598,600,601,343],{},[19,599,21],{}," follows ",[139,602,604],{"href":603},"https:\u002F\u002Fconsoledonottrack.com\u002F","Console Do Not Track",{"title":444,"searchDepth":606,"depth":606,"links":607},5,[608,610,611,612],{"id":37,"depth":609,"text":38},2,{"id":133,"depth":609,"text":134},{"id":500,"depth":609,"text":501},{"id":529,"depth":609,"text":530},"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":616,"title":5,"description":613,"outline":617,"order":619,"navigation":620},"doc",[609,618],3,6,{"title":621,"icon":622},"Telemetry","i-iconoir-antenna",{"layout":616,"outline":624},[609,618],{"title":621,"icon":622},"\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry",{"title":5,"description":613},{"loc":626},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Ftelemetry.md","docs\u002F5.x\u002Freference\u002Ftelemetry","3zx4_hXn35J4UKblGLL9rZckP9M8PhCVgikV3jXDe0A",1795989034607,"2e8b4c62-5b8c-4587-97c0-530d08a9bd53"]