Returning a new collection in custom middleware not working
Open
Nobody has claimed this yet.
bug
sw: Middleware
- Dominant language
- Lua
- Stars
- 41
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
This doesn't work:
:middleware(mw.custom(function(collection)
return telem.metricCollection({
sanity = -2
})
end))
Contributor guide
No contributing guide indexed for this repository
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 by tracing the mw.custom middleware entry point and telem.metricCollection behavior shown in the issue. Use the linked MCCM Discord context to understand the expected result and determine what “not working” means; done should mean a middleware callback can return a new collection successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100