Skip to content

metrics: ensure feature_flags is an empty array, not an object - #146

Merged
blotus merged 1 commit into
mainfrom
json-object-fflag-metrics
Jul 16, 2026
Merged

metrics: ensure feature_flags is an empty array, not an object#146
blotus merged 1 commit into
mainfrom
json-object-fflag-metrics

Conversation

@blotus

@blotus blotus commented Jul 16, 2026

Copy link
Copy Markdown
Member

Fixes #134.

NPMPlus uses the cjson library from alpine, which does not provide array_mt.

Since there's apparently no way to emit a [] from a LUA object with the default cjson, just replace it in the encoded string.

@sabban sabban left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@blotus
blotus merged commit e688fdd into main Jul 16, 2026
1 of 2 checks passed
@blotus
blotus deleted the json-object-fflag-metrics branch July 16, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CrowdSec remediation metrics not shown in Console: /v1/usage-metrics returns 400 (feature_flags sent as object, LAPI expects []string)

2 participants