Skip to main content

Monitoring

Logs

Full logging configuration is enabled for your Cloudflare infrastructure. By default, all logs are captured for your backend, and a sampling rate of 0.1 (10%) for your reverse proxy.

Read more about Cloudflare's log explorer, or log into your account and view the dashboard directly. It is rather intuitive.

Product Usage

We use PostHog to track usage of the product by default.

There is no event tracking added to the frontend. However, user and tenant identification is built in. It is up to you to track events which are relevant to your product. You can track events in the frontend with the following:

import { usePostHog } from "posthog-js/react";

// ...
const MyComponent = () => {

const posthog = usePostHog();

useEffect(() => {
posthog?.capture("event", {
property: "value"
});
}, [posthog])
}
note

You can swap out PostHog for your product analytics provider of choice. However, we will note that PostHog is an incredibly developer-friendly platform with a great free-tier value.

To use PostHog in your frontend, you will need to set:

  • VITE_POSTHOG_API_HOST
  • VITE_POSTHOG_PROJECT_API_KEY