ErrorsBuilt-in services · rule
telemetry.personal_data
A personal field is given as a metric's label or a note's attribute, which would send it to the monitoring service.
Area 16, Built-in services; not declinable; the next step is usually the agent's.
Why Jadpo refuses it
A metric's labels and a note's attributes are the only values from your
app's data that telemetry sends, and they go to the monitoring service as
they are, with nothing hashed. The people a personal field is about never
agreed to it leaving the app that way, and a monitoring service keeps
what it is sent for as long as it likes. So a field marked personal:,
or a value of a type that is personal data whatever holds it, such as an
Email or a PersonName, is never one.
What it looks like
count_visit counts visits by the visitor's subscription level, and
gives that field, which is marked as personal data, as the label:
/// What a visitor pays for.type SubscriptionLevel = Enum { free paid}/// Someone who visits.entity Visitor { id: Uuid subscription_level: SubscriptionLevel { personal: PersonalData.financial } person: true}/// Visits, by subscription level.metric visits = Counter { by: [subscription_level]}/// Counts a visit by `visitor`.action count_visit(visitor: Visitor) { telemetry.visits.add(1, subscription_level: visitor.subscription_level)}
error telemetry.visits.add would send Visitor.subscription_level, marked personal:, as a label
--> main.jadpo:23:49
|23 | telemetry.visits.add(1, subscription_level: visitor.subscription_level) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ personal data
- reason
- A metric's labels and a note's attributes go to the monitoring service as they are, with nothing hashed, so a personal field is never one: the people it is about never agreed to it leaving the app this way.
- next
- Give
subscription_level:something that isn't personal data, or remove it (agent) - rule
- telemetry.
personal_ data - help
- https://jadpo.
dev/docs/errors/telemetry. personal_ data
(agent) at the end of the next: line means your coding agent can make
the fix itself.
How to fix it
If you want the counts split, split them by something that isn't personal data, which tells visits apart without saying anything about a person:
/// Visits, by whether they came back.metric visits = Counter { by: [returning]}
The metric now counts visits by whether they came back, which is no one's personal data.
Related
Markdown for agents: /docs/errors/telemetry.personal_data.md.Built from Jadpo's main branch at commit 9080dc3.