Context
Two bugs were identified in the observability instrumentation provided by lib-commons:
-
Race condition on HTTP method labels — concurrent access corrupts http_method values (e.g. GET → GETT, POS, GETC), multiplying time series and inflating request metrics (calls_total).
-
Incorrect span classification — INTERNAL spans were being classified as SPAN_KIND_SERVER, duplicating call counts for service-internal operations.
Both issues are fixed in lib-commons v5.0.2.
Impact
- Inflated
calls_total metrics across all environments
- Unreliable observability dashboards
- Increased metric storage cost (spurious time series)
Action Required
- Update
lib-commons dependency to >= v5.0.2 in go.mod
- Run
go mod tidy
- Open PR, validate CI
- Release new version
- Coordinate deployment to client environments
Reference
- Jira: DSINT-1105
- Thread: #devops-team investigation
- Requested-by: @gabrielferreira-lerian (Ferreira)
Current version in this repo: v4.2.0
Context
Two bugs were identified in the observability instrumentation provided by lib-commons:
Race condition on HTTP method labels — concurrent access corrupts
http_methodvalues (e.g.GET→GETT,POS,GETC), multiplying time series and inflating request metrics (calls_total).Incorrect span classification — INTERNAL spans were being classified as
SPAN_KIND_SERVER, duplicating call counts for service-internal operations.Both issues are fixed in lib-commons v5.0.2.
Impact
calls_totalmetrics across all environmentsAction Required
lib-commonsdependency to>= v5.0.2ingo.modgo mod tidyReference
Current version in this repo:
v4.2.0