← Graph

Schemas for structured log attributes

question 3 connections

Audience asks whether there's a way to let developers send arbitrary attributes while still being able to aggregate/group by type — and whether to enforce a schema on the back-end or front-end. Callaghan answers: in short, no universal schema covers domain objects because they differ per app. He hopes OpenTelemetry will expand into this area in ~10 years; has explored Schema.org (too loose/generic). Currently he uses JSON Schemas to validate analytics-event attributes in the Segment pipeline, blocking invalid events and surfacing them as Sentry errors. Cost: team-wide agreement, schema versioning, large Notion docs, training.

answer_summary
No universal schema for domain objects (they're per-app). OTel may tackle it in ~10 years; Schema.org too generic. Currently uses JSON Schemas to validate and block bad events in the Segment pipeline, at the cost of team-wide coordination.
question Schemas for structured log attributes
about
Callaghan's working solution to the schema problem.
question Schemas for structured log attributes
about
Schema.org resource
Evaluated as one potential solution, judged too generic.
question Schemas for structured log attributes
asked_at
Audience question on schema vs schemaless tradeoffs.

Provenance

Read by
2 extractions