# How Sypnia uses it

> Telemetry, the pilot, keeps its recordings and raw events in Sypnia Files, and the rest of Sypnia serves its files from it too.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://files.docs.sypnia.com/start/how-sypnia-uses-it/

For agents: Dogfooding: Telemetry (the pilot, built on Sypnia end to end) points its engine's object storage (storage.endpoint, SYPNIA_STORAGE_ENDPOINT) at Files' S3-compatible API with one S3 key scoped to its private bucket telemetry-events (raw event segments, replay chunks, page snapshots, source maps; keys under each customer project's id; source maps never public). The Telemetry engine deletes expired data itself per plan. Public images of telemetry.sypnia.com and the docs come from a public bucket through Files' CDN. Files calls are spans in Telemetry's own traces. Rest of the suite: App keeps chat attachments in the private bucket app-uploads; Mail keeps inbound attachments and mailbox blobs it is told to keep; Design keeps renders and exports; Learn keeps course videos; Skills packages; sypnia.com and the product sites serve images and downloads. Self-hosted Telemetry engines can use a self-hosted Files engine the same way.

Telemetry is the pilot of the Sypnia suite: it is built on Sypnia from end to end and uses every Sypnia product. This is how it uses Sypnia Files.

## How Telemetry uses Sypnia Files

| What Telemetry keeps                                     | How it lives in Files                                                                                                                         |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Raw events** that arrive from every customer's app     | the private bucket `telemetry-events`, one key per segment, under the customer project's id                                                   |
| **Session recordings**: replay chunks and page snapshots | the same private bucket, read back only by the engine, which hands the console a short-lived link                                             |
| **Source maps** uploaded by customers' builds            | the same private bucket; they are never public and never reach a browser                                                                      |
| **Images of telemetry.sypnia.com and its docs**          | a public bucket, served through Files' CDN and sized for each screen with [image transforms](https://files.docs.sypnia.com/images/transforms) |

- **Through the S3 API.** Telemetry's engine speaks S3, so it needs no special code: in Sypnia Cloud its `storage.endpoint` is [Files' S3-compatible API](https://files.docs.sypnia.com/s3/s3-api), with one S3 key limited to `telemetry-events` and to the actions the engine needs. Every request through that key is recorded with its id.
- **Retention stays with Telemetry.** Each plan keeps data for a different time, and the Telemetry engine deletes what has expired once a day, so the bucket needs no rule of its own.
- **Files you never see.** Nothing in `telemetry-events` is public. A recording is shown in the console through a link that works for a few minutes, for the person who opened it.
- **Traced in Telemetry itself.** Each write and read is a span inside the trace of the Telemetry case that made it, so a slow upload of a recording shows up the way it would for a customer.
- **Self-hosted too.** A self-hosted Telemetry engine can keep its data in a self-hosted Files engine the same way: set `SYPNIA_STORAGE_ENDPOINT` to the Files engine's `/s3` address and give it an S3 key for its bucket.

## The rest of the suite

| Product or site                           | What it keeps in Sypnia Files                                                                                                                      |
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [App](https://app.docs.sypnia.com/)       | the files people attach in the chat, in the private bucket `app-uploads`, readable only by the person who sent them and the project they belong to |
| [Mail](https://mail.docs.sypnia.com/)     | attachments of received e-mail, when a project asks to keep them in a bucket of its own                                                            |
| [Design](https://design.docs.sypnia.com/) | rendered screens, the PDF of each design guide and exported images                                                                                 |
| [Learn](https://learn.docs.sypnia.com/)   | the videos of the courses                                                                                                                          |
| [Skills](https://skills.docs.sypnia.com/) | the published packages of each skill version                                                                                                       |
| sypnia.com and every product site         | images and downloads, from public buckets through the CDN                                                                                          |

## What it proves

Telemetry writes to Files all day, from every customer's app at once. If an upload is slow, a key opens more than it should, or a private file leaks to a public address, Telemetry is the first to feel it, in production, every day.
