Report usage, not price
Your application reports what happened. Pylva prices it later from the dashboard.TypeScript
Python
Good metric names
Choose metric names that match the vendor unit you pay for.Pricing workflow
- The SDK sends a metric event.
- Pylva records the source and flags missing pricing if needed.
- You configure a dashboard pricing rule for the metric.
- Future events are priced automatically.
- Historical gaps can be backfilled when pricing is available.
Best practices
- Keep metric names stable.
- Use one unit per metric.
- Choose one reporting path per source to avoid double counting.
- Avoid embedding vendor names into
customer_idorstep_name. - Do not send raw user content in metadata.