[{"data":1,"prerenderedAt":2411},["ShallowReactive",2],{"navigation_docs":3,"-run-logs":613,"-run-logs-surround":2408},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":90,"body":615,"description":842,"extension":2402,"links":2403,"meta":2404,"navigation":2405,"path":91,"seo":2406,"stem":92,"__hash__":2407},"docs\u002F2.run\u002F7.logs.md",{"type":616,"value":617,"toc":2393},"minimark",[618,643,648,666,802,816,836,1020,1028,1042,1046,1053,1094,1097,1118,1122,1140,1143,1280,1288,1308,1311,1315,1329,1366,1369,1492,1513,2045,2058,2061,2064,2094,2123,2171,2175,2185,2191,2197,2201,2389],[619,620,621,622,626,627,632,633,637,638,642],"p",{},"What an instance writes to its log, and how to follow one request through everything it started. Logs are for the\noperator: SHADE keeps no dashboard for them, so read them with ",[623,624,625],"code",{},"docker logs",", Coolify's log view or the log collector\nyou already use (decision 0018 point 11). Traces are built and off until you point them at a collector (",[628,629,631],"a",{"href":630},"#traces-over-opentelemetry","Traces","); a Prometheus metrics endpoint is built and off until you set a port and a token (",[628,634,636],{"href":635},"#metrics-for-prometheus","Metrics","); errors can also go to a GlitchTip or Sentry you run (",[628,639,641],{"href":640},"#error-reporting","Error reporting",").",[644,645,647],"h2",{"id":646},"the-format","The format",[619,649,650,651,654,655,658,659,654,662,665],{},"Every container writes one JSON object per line: to standard output for ",[623,652,653],{},"debug"," and ",[623,656,657],{},"info",", to standard error for\n",[623,660,661],{},"warn",[623,663,664],{},"error",". A line has:",[667,668,669,682],"table",{},[670,671,672],"thead",{},[673,674,675,679],"tr",{},[676,677,678],"th",{},"Field",[676,680,681],{},"Meaning",[683,684,685,696,719,729,755,765,775,792],"tbody",{},[673,686,687,693],{},[688,689,690],"td",{},[623,691,692],{},"time",[688,694,695],{},"When, in UTC (ISO 8601).",[673,697,698,703],{},[688,699,700],{},[623,701,702],{},"level",[688,704,705,707,708,707,710,712,713,715,716,718],{},[623,706,653],{},", ",[623,709,657],{},[623,711,661],{}," or ",[623,714,664],{},". ",[623,717,653],{}," lines are not written.",[673,720,721,726],{},[688,722,723],{},[623,724,725],{},"msg",[688,727,728],{},"What happened, in a sentence.",[673,730,731,736],{},[688,732,733],{},[623,734,735],{},"role",[688,737,738,739,707,742,707,745,712,748,751,752,642],{},"The container role: ",[623,740,741],{},"admin",[623,743,744],{},"public",[623,746,747],{},"worker",[623,749,750],{},"all"," (",[623,753,754],{},"SHADE_API_ROLE",[673,756,757,762],{},[688,758,759],{},[623,760,761],{},"version",[688,763,764],{},"SHADE's version.",[673,766,767,772],{},[688,768,769],{},[623,770,771],{},"requestId",[688,773,774],{},"The request id of what was running (below). Not on lines from start-up.",[673,776,777,785],{},[688,778,779,707,782],{},[623,780,781],{},"traceId",[623,783,784],{},"spanId",[688,786,787,788,791],{},"The trace and span that were active, when ",[628,789,790],{"href":630},"traces are on",".",[673,793,794,799],{},[688,795,796],{},[623,797,798],{},"plugin",[688,800,801],{},"The module whose code was running, when it was one: its own log lines, the events it hears, its jobs, its sandbox's output.",[619,803,804,805,807,808,811,812,815],{},"Anything else on a line is a detail of that event: ",[623,806,664],{}," (name, message and stack of what failed), ",[623,809,810],{},"queue",",\n",[623,813,814],{},"attempt",", and so on.",[619,817,818,819,822,823,707,826,707,829,654,832,835],{},"Each request writes one line when it ends, ",[623,820,821],{},"\"msg\":\"request\"",", with ",[623,824,825],{},"method",[623,827,828],{},"route",[623,830,831],{},"status",[623,833,834],{},"durationMs",":",[837,838,843],"pre",{"className":839,"code":840,"language":841,"meta":842,"style":842},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\"time\":\"2026-11-11T09:12:44.103Z\",\"level\":\"info\",\"msg\":\"request\",\"role\":\"admin\",\"version\":\"0.1.0\",\"requestId\":\"4b1e9c52-0d57-4c1f-8f61-2a0a6d3d7a10\",\"method\":\"POST\",\"route\":\"\u002Fapi\u002Fcollections\u002F:slug\u002F:id\u002Fpublish\",\"status\":200,\"durationMs\":41}\n","json","",[623,844,845],{"__ignoreMap":842},[846,847,850,854,857,860,862,864,866,870,872,875,877,879,881,883,885,887,889,891,893,895,897,899,901,904,906,908,910,912,914,916,918,920,922,924,926,928,930,932,934,937,939,941,943,945,947,949,951,954,956,958,960,962,964,966,968,971,973,975,977,979,981,983,985,988,990,992,994,996,998,1000,1004,1006,1008,1010,1012,1014,1017],"span",{"class":848,"line":849},"line",1,[846,851,853],{"class":852},"sMK4o","{",[846,855,856],{"class":852},"\"",[846,858,692],{"class":859},"spNyl",[846,861,856],{"class":852},[846,863,835],{"class":852},[846,865,856],{"class":852},[846,867,869],{"class":868},"sfazB","2026-11-11T09:12:44.103Z",[846,871,856],{"class":852},[846,873,874],{"class":852},",",[846,876,856],{"class":852},[846,878,702],{"class":859},[846,880,856],{"class":852},[846,882,835],{"class":852},[846,884,856],{"class":852},[846,886,657],{"class":868},[846,888,856],{"class":852},[846,890,874],{"class":852},[846,892,856],{"class":852},[846,894,725],{"class":859},[846,896,856],{"class":852},[846,898,835],{"class":852},[846,900,856],{"class":852},[846,902,903],{"class":868},"request",[846,905,856],{"class":852},[846,907,874],{"class":852},[846,909,856],{"class":852},[846,911,735],{"class":859},[846,913,856],{"class":852},[846,915,835],{"class":852},[846,917,856],{"class":852},[846,919,741],{"class":868},[846,921,856],{"class":852},[846,923,874],{"class":852},[846,925,856],{"class":852},[846,927,761],{"class":859},[846,929,856],{"class":852},[846,931,835],{"class":852},[846,933,856],{"class":852},[846,935,936],{"class":868},"0.1.0",[846,938,856],{"class":852},[846,940,874],{"class":852},[846,942,856],{"class":852},[846,944,771],{"class":859},[846,946,856],{"class":852},[846,948,835],{"class":852},[846,950,856],{"class":852},[846,952,953],{"class":868},"4b1e9c52-0d57-4c1f-8f61-2a0a6d3d7a10",[846,955,856],{"class":852},[846,957,874],{"class":852},[846,959,856],{"class":852},[846,961,825],{"class":859},[846,963,856],{"class":852},[846,965,835],{"class":852},[846,967,856],{"class":852},[846,969,970],{"class":868},"POST",[846,972,856],{"class":852},[846,974,874],{"class":852},[846,976,856],{"class":852},[846,978,828],{"class":859},[846,980,856],{"class":852},[846,982,835],{"class":852},[846,984,856],{"class":852},[846,986,987],{"class":868},"\u002Fapi\u002Fcollections\u002F:slug\u002F:id\u002Fpublish",[846,989,856],{"class":852},[846,991,874],{"class":852},[846,993,856],{"class":852},[846,995,831],{"class":859},[846,997,856],{"class":852},[846,999,835],{"class":852},[846,1001,1003],{"class":1002},"sbssI","200",[846,1005,874],{"class":852},[846,1007,856],{"class":852},[846,1009,834],{"class":859},[846,1011,856],{"class":852},[846,1013,835],{"class":852},[846,1015,1016],{"class":1002},"41",[846,1018,1019],{"class":852},"}\n",[619,1021,1022,1024,1025,791],{},[623,1023,828],{}," is the route's pattern, never the address that was asked for, so ids in the path and the query string are not in\nthe log. A request that no route answered (the admin's own files, a 404) has the route ",[623,1026,1027],{},"unmatched",[619,1029,1030,1031,1034,1035,1038,1039,1041],{},"For development, ",[623,1032,1033],{},"SHADE_LOG_FORMAT=text"," writes readable lines instead\n(",[623,1036,1037],{},"time LEVEL [role] [plugin] (request id) message key=value","). The default is ",[623,1040,841],{},"; production keeps it.",[644,1043,1045],{"id":1044},"one-request-id-through-everything","One request id through everything",[619,1047,1048,1049,1052],{},"Every request has an id. It is sent back in the ",[623,1050,1051],{},"X-Request-Id"," header, is on every log line written while the request\nis handled, and is kept with what the request starts:",[1054,1055,1056,1064,1070,1079,1085],"ul",{},[1057,1058,1059,1063],"li",{},[1060,1061,1062],"strong",{},"A queued job"," (a form delivery to a module, an outgoing webhook, a module's job) is stored with the id of the\nrequest that queued it, and runs, logs and fails under it, even in another container and minutes later. A job nobody\nasked for from a request gets an id of its own.",[1057,1065,1066,1069],{},[1060,1067,1068],{},"The error log"," keeps the id of the request, or of the job, that failed. An error on the Errors screen has the id\nto search the log for.",[1057,1071,1072,1075,1076,1078],{},[1060,1073,1074],{},"Outgoing webhooks"," carry it in an ",[623,1077,1051],{}," header, so the receiver can log it too.",[1057,1080,1081,1084],{},[1060,1082,1083],{},"Hooks and thread tasks"," run under the id of the request that caused them.",[1057,1086,1087,654,1090,1093],{},[1060,1088,1089],{},"A schedule run",[1060,1091,1092],{},"a process"," get an id of their own, so their lines and the jobs they queue can be followed.",[619,1095,1096],{},"To follow a request, take its id from the response header, the Errors screen or a log line, and search the logs of\nevery container for it.",[619,1098,1099,1100,1103,1104,1106,1107,1110,1111,654,1114,1117],{},"An id sent in with the request is ",[1060,1101,1102],{},"not"," used by default: a visitor could otherwise choose the id their request is\nlogged under. If the proxy in front of SHADE is yours and sets ",[623,1105,1051],{}," itself (so one id runs from the proxy to\nSHADE), set ",[623,1108,1109],{},"SHADE_TRUST_PROXY_IDS=true",". SHADE then keeps an incoming id of up to 64 letters, digits, ",[623,1112,1113],{},"-",[623,1115,1116],{},"_",";\nanything else is replaced by a new one.",[644,1119,1121],{"id":1120},"traces-over-opentelemetry","Traces over OpenTelemetry",[619,1123,1124,1125,1128,1129,1132,1133,654,1136,1139],{},"Traces show where the time of one request went: the request, the database transactions it ran, the jobs it queued, the\nevents it wrote and the calls it made out. They are ",[1060,1126,1127],{},"off"," until you set ",[623,1130,1131],{},"OTEL_EXPORTER_OTLP_ENDPOINT",". Without it SHADE\nloads no tracing code, sends nothing and costs nothing. With it, every container sends over OTLP\u002FHTTP to\n",[623,1134,1135],{},"\u003Cendpoint>\u002Fv1\u002Ftraces",[623,1137,1138],{},"\u003Cendpoint>\u002Fv1\u002Flogs",", to a collector or backend you run (Grafana Tempo, Jaeger, SigNoz,\nGlitchTip or an OpenTelemetry Collector in front of any of them).",[619,1141,1142],{},"What gets a span:",[667,1144,1145,1155],{},[670,1146,1147],{},[673,1148,1149,1152],{},[676,1150,1151],{},"Span",[676,1153,1154],{},"Named and tagged with",[683,1156,1157,1168,1178,1193,1202,1213,1224,1235,1250,1264],{},[673,1158,1159,1162],{},[688,1160,1161],{},"A request",[688,1163,1164,1167],{},[623,1165,1166],{},"POST \u002Fapi\u002Fcollections\u002F:slug\u002F:id\u002Fpublish",": the route's pattern and the status. Never the address asked for.",[673,1169,1170,1173],{},[688,1171,1172],{},"A database transaction",[688,1174,1175],{},[623,1176,1177],{},"db.transaction",[673,1179,1180,1183],{},[688,1181,1182],{},"A queued job, and a job giving up",[688,1184,1185,1188,1189,1192],{},[623,1186,1187],{},"job \u003Cqueue>",": the queue and the try. It starts a trace of its own and ",[1060,1190,1191],{},"links"," to the span that queued it, so you can open the request from the job (a job can run minutes later, in another container).",[673,1194,1195,1197],{},[688,1196,1089],{},[688,1198,1199],{},[623,1200,1201],{},"schedule \u003Cname>",[673,1203,1204,1207],{},[688,1205,1206],{},"A process start, restart and stop",[688,1208,1209,1212],{},[623,1210,1211],{},"process start",": the module and the process",[673,1214,1215,1218],{},[688,1216,1217],{},"A hook",[688,1219,1220,1223],{},[623,1221,1222],{},"hook \u003Cname>",": the module whose hook runs",[673,1225,1226,1229],{},[688,1227,1228],{},"A thread task",[688,1230,1231,1234],{},[623,1232,1233],{},"thread task \u003Cname>",": the module and the task",[673,1236,1237,1244],{},[688,1238,1239,1240,1243],{},"A call out (",[623,1241,1242],{},"kernel\u002Foutbound.ts",")",[688,1245,1246,1249],{},[623,1247,1248],{},"outbound",": the host, never the path or the query",[673,1251,1252,1258],{},[688,1253,1254,1255],{},"What a module does through ",[623,1256,1257],{},"ctx",[688,1259,1260,1263],{},[623,1261,1262],{},"ctx.fetch"," (host), `ctx.db select",[673,1265,1266,1269],{},[688,1267,1268],{},"What a module traces itself",[688,1270,1271,822,1277,1279],{},[628,1272,1274],{"href":1273},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#tracing",[623,1275,1276],{},"ctx.trace",[623,1278,798],{}," set",[619,1281,1282,1283,654,1285,1287],{},"A log line written while a span is active carries its ",[623,1284,781],{},[623,1286,784],{},", and is also sent over OTLP as a log record\nwith the same ids, so a log line and its trace join in your backend. Lines go to standard output as before.",[619,1289,1290,1291,1294,1295,1297,1298,1300,1301,1303,1304,1307],{},"A ",[623,1292,1293],{},"traceparent"," header on an incoming request is ",[1060,1296,1102],{}," used by default: a visitor could otherwise join someone else's\ntrace. If the proxy in front of SHADE is yours and starts the trace (",[623,1299,1109],{},"), SHADE continues a\nvalid ",[623,1302,1293],{}," (version ",[623,1305,1306],{},"00",", lower-case hex, no all-zero id); anything else starts a new trace.",[619,1309,1310],{},"Spans of what runs inside a module's process thread or a thread task's own thread are not sent yet: the task's span in the\nAPI is, with its time and result.",[644,1312,1314],{"id":1313},"metrics-for-prometheus","Metrics for Prometheus",[619,1316,1317,1318,1320,1321,1324,1325,1328],{},"SHADE can serve its numbers in the Prometheus text format (version 0.0.4). It is ",[1060,1319,1127],{}," until you set\n",[623,1322,1323],{},"SHADE_METRICS_PORT",". The endpoint is a second, tiny server on that port of its own, and it answers only\n",[623,1326,1327],{},"GET \u002Fmetrics",": any other path is a 404, and a request without the right token is a 401. Every container role serves\nthe numbers about itself.",[1330,1331,1332,1343,1356],"ol",{},[1057,1333,1334,1335,1338,1339,1342],{},"Make a token of at least 32 characters (",[623,1336,1337],{},"openssl rand -hex 32",") and set ",[623,1340,1341],{},"SHADE_METRICS_TOKEN"," to it. SHADE refuses\nto start with a port and no token (or a token that is too short).",[1057,1344,1345,1346,1348,1349,1352,1353,791],{},"Set ",[623,1347,1323],{},", for example ",[623,1350,1351],{},"9464",", on every container you want to scrape. It must not be ",[623,1354,1355],{},"PORT",[1057,1357,1358,1361,1362,1365],{},[1060,1359,1360],{},"Never publish the port or give it a domain."," The deploy template does not publish it. Prometheus reaches it on the\ninstance's own network (",[623,1363,1364],{},"http:\u002F\u002Fadmin:9464\u002Fmetrics","), so run Prometheus on that network, or reach it through a private\nnetwork such as a VPN. The token is a second lock, not a reason to put the port on the internet.",[619,1367,1368],{},"A Prometheus scrape config for the three containers of a small instance:",[837,1370,1374],{"className":1371,"code":1372,"language":1373,"meta":842,"style":842},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","scrape_configs:\n  - job_name: shade\n    scrape_interval: 30s\n    authorization:\n      type: Bearer\n      credentials_file: \u002Fetc\u002Fprometheus\u002Fshade-token\n    static_configs:\n      - targets: ['admin:9464', 'public:9464', 'worker:9464']\n","yaml",[623,1375,1376,1385,1399,1410,1418,1429,1440,1448],{"__ignoreMap":842},[846,1377,1378,1382],{"class":848,"line":849},[846,1379,1381],{"class":1380},"swJcz","scrape_configs",[846,1383,1384],{"class":852},":\n",[846,1386,1388,1391,1394,1396],{"class":848,"line":1387},2,[846,1389,1390],{"class":852},"  -",[846,1392,1393],{"class":1380}," job_name",[846,1395,835],{"class":852},[846,1397,1398],{"class":868}," shade\n",[846,1400,1402,1405,1407],{"class":848,"line":1401},3,[846,1403,1404],{"class":1380},"    scrape_interval",[846,1406,835],{"class":852},[846,1408,1409],{"class":868}," 30s\n",[846,1411,1413,1416],{"class":848,"line":1412},4,[846,1414,1415],{"class":1380},"    authorization",[846,1417,1384],{"class":852},[846,1419,1421,1424,1426],{"class":848,"line":1420},5,[846,1422,1423],{"class":1380},"      type",[846,1425,835],{"class":852},[846,1427,1428],{"class":868}," Bearer\n",[846,1430,1432,1435,1437],{"class":848,"line":1431},6,[846,1433,1434],{"class":1380},"      credentials_file",[846,1436,835],{"class":852},[846,1438,1439],{"class":868}," \u002Fetc\u002Fprometheus\u002Fshade-token\n",[846,1441,1443,1446],{"class":848,"line":1442},7,[846,1444,1445],{"class":1380},"    static_configs",[846,1447,1384],{"class":852},[846,1449,1451,1454,1457,1459,1462,1465,1468,1470,1472,1475,1478,1480,1482,1484,1487,1489],{"class":848,"line":1450},8,[846,1452,1453],{"class":852},"      -",[846,1455,1456],{"class":1380}," targets",[846,1458,835],{"class":852},[846,1460,1461],{"class":852}," [",[846,1463,1464],{"class":852},"'",[846,1466,1467],{"class":868},"admin:9464",[846,1469,1464],{"class":852},[846,1471,874],{"class":852},[846,1473,1474],{"class":852}," '",[846,1476,1477],{"class":868},"public:9464",[846,1479,1464],{"class":852},[846,1481,874],{"class":852},[846,1483,1474],{"class":852},[846,1485,1486],{"class":868},"worker:9464",[846,1488,1464],{"class":852},[846,1490,1491],{"class":852},"]\n",[619,1493,1494,1495,751,1497,707,1499,707,1501,712,1503,1505,1506,1509,1510,1512],{},"Every series carries the label ",[623,1496,735],{},[623,1498,741],{},[623,1500,744],{},[623,1502,747],{},[623,1504,750],{},"). Labels come from fixed sets only: a value\noutside them is counted as ",[623,1507,1508],{},"other",". A label is never an id, a path with an id, a query string, an address or anything a\nvisitor typed (route patterns such as ",[623,1511,987],{},", queue and schedule names, module names from the\ninstalled list, statuses).",[667,1514,1515,1527],{},[670,1516,1517],{},[673,1518,1519,1522,1525],{},[676,1520,1521],{},"Metric",[676,1523,1524],{},"Labels",[676,1526,681],{},[683,1528,1529,1552,1591,1604,1616,1650,1676,1690,1704,1732,1760,1786,1802,1817,1866,1882,1898,1924,1936,1966,1980,2006,2030],{},[673,1530,1531,1536,1544],{},[688,1532,1533],{},[623,1534,1535],{},"shade_http_requests_total",[688,1537,1538,707,1540,707,1542],{},[623,1539,825],{},[623,1541,828],{},[623,1543,831],{},[688,1545,1546,1547,1549,1550,791],{},"Requests. ",[623,1548,828],{}," is the pattern; a request no route answered is ",[623,1551,1027],{},[673,1553,1554,1559,1568],{},[688,1555,1556],{},[623,1557,1558],{},"shade_http_request_duration_seconds",[688,1560,1561,707,1563,707,1565],{},[623,1562,825],{},[623,1564,828],{},[623,1566,1567],{},"status_class",[688,1569,1570,1571,707,1574,707,1577,1580,1581,1583,1584,707,1587,1590],{},"Histogram (",[623,1572,1573],{},"_bucket",[623,1575,1576],{},"_sum",[623,1578,1579],{},"_count",") of how long requests took; ",[623,1582,1567],{}," is ",[623,1585,1586],{},"2xx",[623,1588,1589],{},"4xx","…",[673,1592,1593,1598,1601],{},[688,1594,1595],{},[623,1596,1597],{},"shade_database_up",[688,1599,1600],{},"none",[688,1602,1603],{},"1 when the database answers a query. (postgres.js exposes no pool counts, so there are none.)",[673,1605,1606,1611,1613],{},[688,1607,1608],{},[623,1609,1610],{},"shade_redis_up",[688,1612,1600],{},[688,1614,1615],{},"1 when Redis answers.",[673,1617,1618,1623,1630],{},[688,1619,1620],{},[623,1621,1622],{},"shade_queue_jobs_total",[688,1624,1625,707,1627],{},[623,1626,810],{},[623,1628,1629],{},"outcome",[688,1631,1632,1633,707,1636,707,1639,1642,1643,712,1646,1649],{},"Jobs this container ran, by how a try ended: ",[623,1634,1635],{},"done",[623,1637,1638],{},"retried",[623,1640,1641],{},"postponed"," (an outside service's breaker was open; the try did not count), ",[623,1644,1645],{},"gave_up",[623,1647,1648],{},"released"," (the worker stopped before it was done and gave it back; the try did not count). Worker only.",[673,1651,1652,1657,1664],{},[688,1653,1654],{},[623,1655,1656],{},"shade_queue_jobs",[688,1658,1659,707,1661],{},[623,1660,810],{},[623,1662,1663],{},"state",[688,1665,1666,1667,707,1670,712,1673,791],{},"Jobs in Redis per queue: ",[623,1668,1669],{},"ready",[623,1671,1672],{},"delayed",[623,1674,1675],{},"claimed",[673,1677,1678,1683,1687],{},[688,1679,1680],{},[623,1681,1682],{},"shade_queue_waiting_jobs",[688,1684,1685],{},[623,1686,810],{},[688,1688,1689],{},"Jobs that are due and not finished, from the outbox.",[673,1691,1692,1697,1701],{},[688,1693,1694],{},[623,1695,1696],{},"shade_queue_oldest_job_age_seconds",[688,1698,1699],{},[623,1700,810],{},[688,1702,1703],{},"How long the oldest due, unfinished job has waited (0 when none): a queue falling behind.",[673,1705,1706,1711,1718],{},[688,1707,1708],{},[623,1709,1710],{},"shade_schedule_runs_total",[688,1712,1713,707,1716],{},[623,1714,1715],{},"schedule",[623,1717,1629],{},[688,1719,1720,1721,707,1724,1727,1728,1731],{},"Schedule runs on this worker: ",[623,1722,1723],{},"ok",[623,1725,1726],{},"waited"," (an outside service's breaker was open) or ",[623,1729,1730],{},"failed",". A due time another worker took is no run.",[673,1733,1734,1739,1743],{},[688,1735,1736],{},[623,1737,1738],{},"shade_processes",[688,1740,1741],{},[623,1742,1663],{},[688,1744,1745,1746,707,1749,707,1752,707,1755,707,1757,791],{},"Processes of modules on this worker: ",[623,1747,1748],{},"starting",[623,1750,1751],{},"running",[623,1753,1754],{},"backoff",[623,1756,1730],{},[623,1758,1759],{},"stopped",[673,1761,1762,1767,1776],{},[688,1763,1764],{},[623,1765,1766],{},"shade_thread_tasks_total",[688,1768,1769,707,1771,707,1774],{},[623,1770,798],{},[623,1772,1773],{},"task",[623,1775,1629],{},[688,1777,1778,1779,707,1781,712,1783,791],{},"Thread tasks: ",[623,1780,1635],{},[623,1782,1730],{},[623,1784,1785],{},"timeout",[673,1787,1788,1793,1799],{},[688,1789,1790],{},[623,1791,1792],{},"shade_thread_task_duration_seconds",[688,1794,1795,707,1797],{},[623,1796,798],{},[623,1798,1773],{},[688,1800,1801],{},"Histogram of how long thread tasks took.",[673,1803,1804,1809,1814],{},[688,1805,1806],{},[623,1807,1808],{},"shade_module_healthy",[688,1810,1811],{},[623,1812,1813],{},"module",[688,1815,1816],{},"1 when SHADE measures the installed module healthy, as the Modules page does.",[673,1818,1819,1824,1832],{},[688,1820,1821],{},[623,1822,1823],{},"shade_breaker_state",[688,1825,1826,707,1829],{},[623,1827,1828],{},"owner",[623,1830,1831],{},"host",[688,1833,1834,1835,1837,1838,707,1841,707,1844,707,1847,707,1850,707,1853,1856,1857,1860,1861,1863,1864,791],{},"Each outside service's circuit breaker as this container last saw it: 0 closed, 1 half-open (trying), 2 open (decision 0018 point 13). ",[623,1836,1828],{}," is the core feature that calls (",[623,1839,1840],{},"email",[623,1842,1843],{},"media",[623,1845,1846],{},"backups",[623,1848,1849],{},"webhooks",[623,1851,1852],{},"content-delivery",[623,1854,1855],{},"errors",") or ",[623,1858,1859],{},"package:\u003Cname>","; ",[623,1862,1831],{}," the first 50 hosts, then ",[623,1865,1508],{},[673,1867,1868,1873,1879],{},[688,1869,1870],{},[623,1871,1872],{},"shade_breaker_opens_total",[688,1874,1875,707,1877],{},[623,1876,1828],{},[623,1878,1831],{},[688,1880,1881],{},"Breakers this container saw open after repeated failures.",[673,1883,1884,1889,1895],{},[688,1885,1886],{},[623,1887,1888],{},"shade_breaker_refused_total",[688,1890,1891,707,1893],{},[623,1892,1828],{},[623,1894,1831],{},[688,1896,1897],{},"Calls out this container did not make because their breaker was open.",[673,1899,1900,1905,1911],{},[688,1901,1902],{},[623,1903,1904],{},"shade_module_state",[688,1906,1907,707,1909],{},[623,1908,1813],{},[623,1910,1663],{},[688,1912,1913,1914,707,1917,1919,1920,1923],{},"1 for the state a module is in (",[623,1915,1916],{},"on",[623,1918,1127],{},", or ",[623,1921,1922],{},"paused"," after repeated failures), 0 for the others.",[673,1925,1926,1931,1933],{},[688,1927,1928],{},[623,1929,1930],{},"shade_error_groups_opened_last_hour",[688,1932,1600],{},[688,1934,1935],{},"Error groups first seen in the last hour.",[673,1937,1938,1943,1948],{},[688,1939,1940],{},[623,1941,1942],{},"shade_limit_used",[688,1944,1945],{},[623,1946,1947],{},"limit",[688,1949,1950,1951,1954,1955,654,1958,1961,1962,1965],{},"What the instance uses of each ",[628,1952,1953],{"href":99},"usage limit",": bytes for ",[623,1956,1957],{},"storage",[623,1959,1960],{},"database",", otherwise a count (",[623,1963,1964],{},"api-requests",": this month).",[673,1967,1968,1973,1977],{},[688,1969,1970],{},[623,1971,1972],{},"shade_limit_max",[688,1974,1975],{},[623,1976,1947],{},[688,1978,1979],{},"The limit's maximum, in the same unit; left out for a limit that is not set.",[673,1981,1982,1987,1992],{},[688,1983,1984],{},[623,1985,1986],{},"shade_process_memory_bytes",[688,1988,1989],{},[623,1990,1991],{},"kind",[688,1993,1994,707,1997,707,2000,707,2003,791],{},[623,1995,1996],{},"rss",[623,1998,1999],{},"heap_used",[623,2001,2002],{},"heap_total",[623,2004,2005],{},"external",[673,2007,2008,2013,2018],{},[688,2009,2010],{},[623,2011,2012],{},"shade_event_loop_delay_seconds",[688,2014,2015],{},[623,2016,2017],{},"stat",[688,2019,2020,2021,707,2024,707,2027,791],{},"How late the event loop ran since the last scrape: ",[623,2022,2023],{},"mean",[623,2025,2026],{},"p99",[623,2028,2029],{},"max",[673,2031,2032,2037,2042],{},[688,2033,2034],{},[623,2035,2036],{},"shade_collector_up",[688,2038,2039],{},[623,2040,2041],{},"collector",[688,2043,2044],{},"1 when a number measured at the scrape (database, queues, modules…) answered in time (2 seconds, 5 for modules), 0 when it failed; its numbers are then left out, never stale.",[619,2046,2047,2048,2050,2051,2053,2054,2057],{},"The numbers of the whole instance (the queue depths and ages, module health, error groups, usage limits) come from the ",[623,2049,747],{}," (and\n",[623,2052,750],{},") containers only, because every container would report the same, and adding them up would count them twice.\nCounters start over when a container restarts, as Prometheus expects (",[623,2055,2056],{},"rate()"," handles it).",[619,2059,2060],{},"No body, header, cookie, address, person's id or token is in the output. Prometheus, dashboards and alerting are\nyours: SHADE keeps none of them.",[644,2062,641],{"id":2063},"error-reporting",[619,2065,2066,2067,2070,2071,1128,2073,2076,2077,2080,2081,2085,2086,2089,2090,2093],{},"Every error SHADE stores in its ",[628,2068,2069],{"href":226},"error log"," can also be sent, as it happens,\nto a GlitchTip or Sentry that you run or that is in the EU. It is ",[1060,2072,1127],{},[623,2074,2075],{},"SHADE_ERROR_REPORTING_DSN"," to the\nproject's DSN (",[623,2078,2079],{},"https:\u002F\u002F\u003Ckey>@\u003Chost>\u002F\u003Cproject>",", from the project's settings). SHADE refuses to start with a DSN it cannot\nread. There is no Sentry package in SHADE: it posts a Sentry ",[2082,2083,2084],"em",{},"envelope"," to ",[623,2087,2088],{},"\u003Chost>\u002Fapi\u002F\u003Cproject>\u002Fenvelope\u002F"," with ",[623,2091,2092],{},"fetch","\nand a 5 second timeout.",[619,2095,2096,2097,707,2100,707,2103,707,2106,707,2109,712,2112,2114,2115,2118,2119,2122],{},"What is sent for each error is the error group's scrubbed fields and nothing else: the error's name, message and stack, its\nsource (",[623,2098,2099],{},"api",[623,2101,2102],{},"hook",[623,2104,2105],{},"job",[623,2107,2108],{},"sandbox",[623,2110,2111],{},"site",[623,2113,1859],{},"), the module, the request id, SHADE's version as the\nrelease, the container role, and the ",[623,2116,2117],{},"environment"," if you set ",[623,2120,2121],{},"SHADE_ERROR_REPORTING_ENVIRONMENT",". The texts have the\nsame scrubbing as the error log (email and IP addresses, query strings, credentials and tokens are taken out). No request\nor answer body, header, cookie, address, user or team member is sent.",[1054,2124,2125,2135,2144,2161],{},[1057,2126,2127,2130,2131,2134],{},[1060,2128,2129],{},"Server errors only, by default."," Errors that browsers wrote (a site's, and a module's admin screen part that failed in\nan editor's browser) are sent only with ",[623,2132,2133],{},"SHADE_ERROR_REPORTING_SITE=true",". Their text comes from a browser, so treat it\nas someone else's text.",[1057,2136,2137,2140,2141,2143],{},[1060,2138,2139],{},"The error log stays the record."," Sending copies; it never waits. A send that fails or is slow is written to the log\nonce a minute at most (",[623,2142,661],{},") and dropped, and is not recorded in the error log again. A burst of more than ten sends at\nonce drops the rest.",[1057,2145,2146,2149,2150,2153,2154,2156,2157,2160],{},[1060,2147,2148],{},"A forwarding module goes first."," If you install the error forwarding module and it is on, SHADE gives it each error\nfirst, and the module sends it where its own rules say (for example, different projects per source; ",[628,2151,2152],{"href":346},"Error forwarding","). A rule that says not to forward an error makes the module decline it, so SHADE sends it to the DSN. When the module\nsays it sent it, SHADE sends nothing itself. When the module is off, did not load, declines the error, fails or takes\nlonger than 5 seconds, SHADE sends it to ",[623,2155,2075],{},". So an error goes ",[1060,2158,2159],{},"once",", and never nowhere, as\nlong as the DSN is set: without a DSN, an error the module declines or fails on is sent nowhere. Set the DSN even when you\nuse the module if you want that guarantee. Only one module can forward errors, and only a trusted one.",[1057,2162,2163,2166,2167,2170],{},[1060,2164,2165],{},"Privacy."," The host you name receives error messages, so it must be yours or in the EU, and the client must know of it\n(",[628,2168,2169],{"href":270},"privacy","). Modules cannot change these settings: they are read from the\nenvironment only.",[644,2172,2174],{"id":2173},"what-is-never-logged-or-traced","What is never logged or traced",[619,2176,2177,2178,2180,2181,2184],{},"No request or answer body, header, cookie, IP address, email address, user's or team member's id or name, query string\nor token. Texts in a line are passed through the same scrubbing as the ",[628,2179,2069],{"href":226},"\n(email addresses, IP addresses, query strings, credentials in addresses, API tokens and payment providers' keys are\nreplaced), and a detail named like a body, headers, a cookie, a token, a password, an email address or an IP address is\nwritten as ",[623,2182,2183],{},"[redacted]",". Modules' own lines follow the same rules.",[619,2186,2187,2188,2190],{},"Spans follow them too: a span's name and attributes are fixed words, route patterns, hosts and numbers, never a body,\nheader, cookie, query string, address, a person's id or a token. What a module gives ",[623,2189,1276],{}," is scrubbed the same way.\nWhether a collector keeps a span's start and end times is a matter for its retention.",[619,2192,2193,2194,2196],{},"Logs and traces you ship elsewhere are still yours to protect: send it only to a host you chose, in the EU or the client's own\n(",[628,2195,2169],{"href":270},"), and tell the client it exists.",[644,2198,2200],{"id":2199},"settings","Settings",[667,2202,2203,2215],{},[670,2204,2205],{},[673,2206,2207,2210,2213],{},[676,2208,2209],{},"Variable",[676,2211,2212],{},"Default",[676,2214,681],{},[683,2216,2217,2236,2260,2276,2293,2308,2323,2337,2353,2369],{},[673,2218,2219,2224,2228],{},[688,2220,2221],{},[623,2222,2223],{},"SHADE_LOG_FORMAT",[688,2225,2226],{},[623,2227,841],{},[688,2229,2230,712,2232,2235],{},[623,2231,841],{},[623,2233,2234],{},"text"," (for development).",[673,2237,2238,2243,2248],{},[688,2239,2240],{},[623,2241,2242],{},"SHADE_TRUST_PROXY_IDS",[688,2244,2245],{},[623,2246,2247],{},"false",[688,2249,2250,2253,2254,2256,2257,2259],{},[623,2251,2252],{},"true",": keep a valid incoming ",[623,2255,1051],{}," and continue a valid ",[623,2258,1293],{}," from the proxy in front.",[673,2261,2262,2266,2269],{},[688,2263,2264],{},[623,2265,1131],{},[688,2267,2268],{},"empty (off)",[688,2270,2271,2272,2275],{},"The collector's address, such as ",[623,2273,2274],{},"http:\u002F\u002Fotel-collector:4318",". Set: traces and logs go there over OTLP\u002FHTTP.",[673,2277,2278,2283,2286],{},[688,2279,2280],{},[623,2281,2282],{},"OTEL_EXPORTER_OTLP_HEADERS",[688,2284,2285],{},"empty",[688,2287,2288,2289,2292],{},"Headers sent with every export, ",[623,2290,2291],{},"name=value"," pairs separated by commas (a collector's token; percent-encode special characters).",[673,2294,2295,2300,2305],{},[688,2296,2297],{},[623,2298,2299],{},"OTEL_SERVICE_NAME",[688,2301,2302],{},[623,2303,2304],{},"shade",[688,2306,2307],{},"The service name on every span and log record; one name per client keeps instances apart.",[673,2309,2310,2314,2316],{},[688,2311,2312],{},[623,2313,1323],{},[688,2315,2268],{},[688,2317,2318,2319,2322],{},"The port of the ",[628,2320,2321],{"href":635},"metrics endpoint",", on its own. Never publish it.",[673,2324,2325,2329,2331],{},[688,2326,2327],{},[623,2328,1341],{},[688,2330,2285],{},[688,2332,2333,2334,2336],{},"The bearer token for ",[623,2335,1327],{},", at least 32 characters; required with the port.",[673,2338,2339,2343,2345],{},[688,2340,2341],{},[623,2342,2075],{},[688,2344,2268],{},[688,2346,2347,2348,751,2350,2352],{},"The DSN of a GlitchTip or Sentry project, ",[623,2349,2079],{},[628,2351,641],{"href":640},"). A bad one stops start-up.",[673,2354,2355,2360,2364],{},[688,2356,2357],{},[623,2358,2359],{},"SHADE_ERROR_REPORTING_SITE",[688,2361,2362],{},[623,2363,2247],{},[688,2365,2366,2368],{},[623,2367,2252],{},": also send errors that browsers wrote (sites, modules' admin parts).",[673,2370,2371,2375,2377],{},[688,2372,2373],{},[623,2374,2121],{},[688,2376,2285],{},[688,2378,2379,2380,2382,2383,707,2386,642],{},"The ",[623,2381,2117],{}," on each report (",[623,2384,2385],{},"production",[623,2387,2388],{},"staging",[2390,2391,2392],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":842,"searchDepth":1387,"depth":1387,"links":2394},[2395,2396,2397,2398,2399,2400,2401],{"id":646,"depth":1387,"text":647},{"id":1044,"depth":1387,"text":1045},{"id":1120,"depth":1387,"text":1121},{"id":1313,"depth":1387,"text":1314},{"id":2063,"depth":1387,"text":641},{"id":2173,"depth":1387,"text":2174},{"id":2199,"depth":1387,"text":2200},"md",null,{},true,{"title":90,"description":842},"_RDA3U8koHj4nXHrSahgj64jzFc-HxkfpKLCbMVgHN0",[2409,2410],{"title":86,"path":87,"stem":88,"description":842,"children":-1},{"title":94,"path":95,"stem":96,"description":842,"children":-1},1796500157701]