mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
feat: add telemetry (#3822)
* feat: telemetry Co-authored-by: Kinfe123 <kinfishtech@gmail.com> * chore: remove changeset * fix: do not generate project id unless telemetry is enabled * fix: return `isInsiderContainerCached` Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * chore: remove unused utils file * fix: properly cache generated project id * feat: interpret empty env vars as false Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix: use nullish coalescing to set fallback * fix: should be `isInsideContainerCached` * fix: unique icons + tooltip for telemetry component * fix: import child process from node * fix: remove quotes in description Co-authored-by: Alex Yang <himself65@outlook.com> * fix: address reviews Co-authored-by: Alex Yang <himself65@outlook.com> * chore: refactor * refactor * add tests * cache pkg json * add cli tracking * add migrate * chore fix xi * skip tet * update snapshot * chore: fix typecheck * Expand telemetry docs: list collected fields, clarify anonymous redaction via getTelemetryAuthConfig, and document CLI events and audit/opt‑out paths. * docs * doc cleanup * fixes * remove git first commit message * update docs --------- Co-authored-by: Kinfe123 <kinfishtech@gmail.com> Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Alex Yang <himself65@outlook.com> Co-authored-by: Bereket Engida <Bekacru@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
Binoculars,
|
||||
Book,
|
||||
CircleHelp,
|
||||
Database,
|
||||
@@ -1963,11 +1964,17 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
href: "/docs/reference/resources",
|
||||
icon: () => <Book className="w-4 h-4 text-current" />,
|
||||
},
|
||||
|
||||
{
|
||||
title: "Security",
|
||||
href: "/docs/reference/security",
|
||||
icon: () => <ShieldCheck className="w-4 h-4 text-current" />,
|
||||
},
|
||||
{
|
||||
title: "Telemetry",
|
||||
href: "/docs/reference/telemetry",
|
||||
icon: () => <Binoculars className="w-4 h-4 text-current" />,
|
||||
},
|
||||
{
|
||||
title: "FAQ",
|
||||
href: "/docs/reference/faq",
|
||||
@@ -1975,45 +1982,6 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
|
||||
// title: "Contribute",
|
||||
// Icon: () => (
|
||||
//
|
||||
// ),
|
||||
// list: [
|
||||
// {
|
||||
// title: "Getting Started",
|
||||
// href: "/docs/contribute/getting-started",
|
||||
// icon: () => <BookOpenCheck className="text-current size-4" />,
|
||||
// },
|
||||
// {
|
||||
// title: "Areas to Contribute",
|
||||
// href: "/docs/contribute/areas-to-contribute",
|
||||
// icon: () => <HandHelping className="w-4 h-4 text-current" />,
|
||||
// },
|
||||
// // {
|
||||
// // title: "Database Adapters",
|
||||
// // href: "/docs/contribute/database-adapters",
|
||||
// // icon: () => <Plug className="w-4 h-4 text-current" />,
|
||||
// // },
|
||||
// {
|
||||
// title: "Testing",
|
||||
// href: "/docs/contribute/testing",
|
||||
// icon: () => <FlaskConical className="w-4 h-4 text-current" />,
|
||||
// },
|
||||
// {
|
||||
// title: "Documenting",
|
||||
// href: "/docs/contribute/documenting",
|
||||
// icon: () => <NotebookPen className="w-4 h-4 text-current" />,
|
||||
// },
|
||||
// {
|
||||
// title: "Security Issues",
|
||||
// href: "/docs/contribute/security-issues",
|
||||
// icon: () => <ShieldCheck className="w-4 h-4 text-current" />,
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
];
|
||||
|
||||
export const examples: Content[] = [
|
||||
|
||||
Reference in New Issue
Block a user