Flagsmith / Flagsmith/flagsmith
Epic: CLI telemetry in the backend
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 567
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 121
Description
Emit a structured event for Flagsmith CLI API usage, route it to Amplitude for retention analysis, and to InfluxDB for volume and error-rate graphs.
### Event
`cli.request.made`, emitted once per authenticated CLI request:
```
cli.version e.g. "2.0.0-beta.3", "dev"
cli.os e.g. "darwin"
cli.arch e.g. "arm64"
organisation.id int, or absent when it cannot be resolved unambiguously
status "success" | "error", from response.status_code >= 400
amplitude.user_id str(request.user.uuid), or absent for a master API key
```
Contributor guide
Research direction
Trace the backend path for authenticated Flagsmith CLI requests first; no file or test entry point is named in the issue. Completion means each request emits one cli.request.made event with the listed fields, derives status from the response, and routes the event to both Amplitude and InfluxDB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100