snowplow / snowplow/snowplow-python-tracker
Support `json.dumps` args and kwargs in `SelfDescribingJson.to_string`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 46
- Forks
- 65
- Avg merge
- 5h 45m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
This is just a nice to have. Useful for debugging the contents of an event or context.
Describe the solution you'd like
Allow passing the arguments for json.dumps in SelfDescribingJson.to_string.
Describe alternatives you've considered
I considered subclassing SelfDescribingJson, but this might be something others find useful.
Additional context
I can start working on a PR if this is something the maintainers are interested in having.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in snowplow_tracker/self_describing_json.py at SelfDescribingJson.to_string, referenced by the issue. Read how it currently calls json.dumps and inspect nearby tests or usage before deciding the supported argument forwarding. Done means callers can pass json.dumps arguments and keyword arguments for debugging serialization without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100