🎥 Make videos programmatically with React
Docs: Add telemetry page (#10059)
Jonny Burger603cc5c684f5
diff --git a/packages/docs/docs/license/TableOfContents.tsx b/packages/docs/docs/license/TableOfContents.tsxindex aa3925a6a7..7e0816ee94 100644--- a/packages/docs/docs/license/TableOfContents.tsx+++ b/packages/docs/docs/license/TableOfContents.tsx@@ -22,6 +22,10 @@ export const TableOfContents: React.FC = () => {<strong>{'Privacy Policy'}</strong><div>How Remotion collects, uses, and protects personal data</div></TOCItem>+ <TOCItem link="/docs/license/telemetry">+ <strong>{'Telemetry'}</strong>+ <div>How Remotion reports rendering usage</div>+ </TOCItem><TOCItem link="/docs/license/dpa"><strong>{'DPA Statement'}</strong><div>diff --git a/packages/docs/docs/license/telemetry.mdx b/packages/docs/docs/license/telemetry.mdxnew file mode 100644index 0000000000..6875bf1ae9--- /dev/null+++ b/packages/docs/docs/license/telemetry.mdx@@ -0,0 +1,116 @@+---+image: /generated/articles-docs-license-telemetry.png+crumb: 'License, Pricing and Compliance'+sidebar_label: Telemetry+title: Telemetry+---++Remotion sometimes sends telemetry that reports when a render has been made.++## Why Remotion has telemetry++Remotion is [free for individuals and small companies](/docs/license) but requires a [paid license](https://remotion.pro) for bigger companies.+The price depends on the amount of renders.++Telemetry makes it easier to track renders and ensure accountability.+We do not use telemetry for any other purposes than ensuring proper licensing.++## APIs which send telemetry++Server-side rendering APIs do only send telemetry when the `licenseKey` option is set.+Client-side rendering APIs do always have telemetry.++## Obligation to set a license key++In Remotion 5.0, it becomes obligatory for companies which are under the "Remotion for Automators" plan to set the `licenseKey` field and opt into telemetry.++Customers who cannot enable telemetry due to company policy must arrange an alternative reporting method with Remotion.++## Sent information++The following information is sent:++- IP Address+- Domain name (e.g. `https://www.remotion.dev`)+- Whether this render was in production or development+- Whether this render was a video or a still image++No content or metadata of the video rendered, or any user data is collected.++## Setting a license key++If you [qualify for the free license](/docs/license), pass `"free-license"` to `licenseKey` to disable any warning in the console and declare your eligibility for the free license.++```tsx twoslash title="Declare eligibility for the free license" {6}+import React from 'react';+const Component: React.FC = () => {+ return (+ <svg viewBox="0 0 100 100" width="100" height="100" style={{transform: 'rotate(45deg)'}}>+ <polygon points="50,10 90,90 10,90" fill="orange" />+ </svg>+ );+};++const composition = {+ component: Component,+ durationInFrames: 100,+ fps: 30,+ width: 100,+ height: 100,+ calculateMetadata: null,+ id: 'my-composition',+};++// ---cut---+import {renderMediaOnWeb} from '@remotion/web-renderer';++await renderMediaOnWeb({+ composition,+ inputProps: {},+ licenseKey: 'free-license',+});+```++If you have a Remotion Company License or Enterprise License, go to [remotion.pro](https://remotion.pro) and get your license key from the License keys page.++```tsx twoslash title="Set a license key" {6}+import React from 'react';+const Component: React.FC = () => {+ return (+ <svg viewBox="0 0 100 100" width="100" height="100" style={{transform: 'rotate(45deg)'}}>+ <polygon points="50,10 90,90 10,90" fill="orange" />+ </svg>+ );+};++const composition = {+ component: Component,+ durationInFrames: 100,+ fps: 30,+ width: 100,+ height: 100,+ calculateMetadata: null,+ id: 'my-composition',+};++// ---cut---+import {renderMediaOnWeb} from '@remotion/web-renderer';++await renderMediaOnWeb({+ composition,+ inputProps: {},+ licenseKey: 'rm_pub_abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890',+});+```++For tracking client-side renders, you should use the public key.+We recommend limiting which domains which can send telemetry in your dashboard.++For tracking server-side renders, you should use the private key.++## Tracking usage++After you set up the license key, you can now track your usage on the same Usage tab.++Usage is not (yet) tied to billing.+You will need to update your render count manually periodically to reflect your usage.diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex b1cbe7b138..ee43f24610 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -1643,6 +1643,7 @@ const sidebars: SidebarsConfig = {'license/faq','license/terms','license/privacy',+ 'license/telemetry','license/dpa','license/dpia','acknowledgements',diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex e42a5c8706..6425ff5144 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -3941,6 +3941,15 @@ export const articles = [noAi: false,slug: 'license/privacy',},+ {+ id: 'license/telemetry',+ title: 'Telemetry',+ relativePath: 'docs/license/telemetry.mdx',+ compId: 'articles-docs-license-telemetry',+ crumb: 'License, Pricing and Compliance',+ noAi: false,+ slug: 'license/telemetry',+ },{id: 'license/terms',title: 'Terms and Conditions of Remotion (v5.0)',diff --git a/packages/docs/static/generated/articles-docs-license-telemetry.png b/packages/docs/static/generated/articles-docs-license-telemetry.pngnew file mode 100644index 0000000000..33e3649700Binary files /dev/null and b/packages/docs/static/generated/articles-docs-license-telemetry.png differdiff --git a/packages/docs/vercel.ts b/packages/docs/vercel.tsindex cb70c6deba..d532903500 100644--- a/packages/docs/vercel.ts+++ b/packages/docs/vercel.ts@@ -394,6 +394,7 @@ export const config: VercelConfig = {}),routes.redirect('/terms', '/docs/license/terms', {permanent: true}),routes.redirect('/privacy', '/docs/license/privacy', {permanent: true}),+ routes.redirect('/telemetry', '/docs/license/telemetry', {permanent: true}),routes.redirect('/dpa', '/docs/license/dpa', {permanent: true}),routes.redirect('/dpia', '/docs/license/dpia', {permanent: true}),routes.redirect('/docs/ai/claude-code', '/docs/ai/coding-agents', {