• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger-labs / fabric-smart-client / 30294154788
81%

Build:
DEFAULT BRANCH: main
Ran 27 Jul 2026 06:36PM UTC
Jobs 17
Files 532
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2026 06:31PM UTC coverage: 81.213% (-0.03%) from 81.245%
30294154788

push

github

web-flow
feat(logging): extract context values into context-aware log lines as zap fields (#1608)

* feat(logging): extract registered context values into context-aware log lines

Context-aware log methods (InfowContext, ErrorfContext, ...) only used the
context to emit an OTel span event; nothing in it ever reached the zap log
line. Adds a declarative (context key -> field name) registry, configurable
via Init(Config{ContextLogFields: ...}) or RegisterContextLogField (mirrors
the existing Replacers pattern), so registered values are auto-attached to
every context-aware log call as zap.Any fields.

The decorator level-gates before extracting (SugaredLogger.Level() check) so
disabled log calls stay near-zero-cost regardless of registry size, and the
*w*Context methods append fields directly into keysAndValues instead of
calling With(), avoiding an extra logger-clone allocation on the enabled
path.

Refs #1607.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>

* perf(logging): make context-field extraction allocation-free when absent

Publish an immutable snapshot of registered ContextLogFields so the hot
read path avoids lock contention and per-call copies, and skip allocating
the combined args/fields slice until a registered key is actually found
in the context. Add benchmarks covering registry size and hit/miss
context scenarios, and a test covering a named string context key type.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>

* test(logging): cover dynamic registration and nested context wrapping

Add tests proving RegisterContextLogField affects already-constructed
loggers immediately, that repeated registrations accumulate rather than
replace, and that registered fields still resolve when the carrying
context is wrapped multiple times (WithValue/WithCancel/WithTimeout) after
the value was set.

Co-Authored-By: Claude Sonnet 5 <noreply@a... (continued)

32305 of 39778 relevant lines covered (81.21%)

2582.68 hits per line

Coverage Regressions

Lines Coverage ∆ File
59
57.25
-7.46% platform/common/services/logging/otel.go
8
87.88
14.55% platform/common/services/logging/config.go
2
92.94
-1.18% platform/view/services/metrics/prometheus/provider.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-atsachaincode - 30294154788.1 27 Jul 2026 06:40PM UTC 479
28.2
GitHub Action Run
2 itest-fabricx-multiendorsement - 30294154788.2 27 Jul 2026 06:36PM UTC 501
26.03
GitHub Action Run
3 itest-fsc-pingpong - 30294154788.3 27 Jul 2026 06:42PM UTC 272
30.02
GitHub Action Run
4 itest-fabric-iouhsm - 30294154788.4 27 Jul 2026 06:43PM UTC 484
36.84
GitHub Action Run
5 itest-fabricx-iou - 30294154788.5 27 Jul 2026 06:36PM UTC 503
26.34
GitHub Action Run
6 itest-fabric-events - 30294154788.6 27 Jul 2026 06:40PM UTC 479
25.66
GitHub Action Run
7 itest-fabricx-deployment - 30294154788.7 27 Jul 2026 06:36PM UTC 501
25.99
GitHub Action Run
8 itest-fsc-signedpingpong - 30294154788.8 27 Jul 2026 06:37PM UTC 270
27.12
GitHub Action Run
9 itest-fabric-twonets - 30294154788.9 27 Jul 2026 06:41PM UTC 474
27.21
GitHub Action Run
10 itest-fabricx-simple - 30294154788.10 27 Jul 2026 06:36PM UTC 501
25.33
GitHub Action Run
11 utest-postgres - 30294154788.11 27 Jul 2026 06:38PM UTC 523
14.23
GitHub Action Run
12 itest-fabric-stoprestart - 30294154788.12 27 Jul 2026 06:43PM UTC 474
28.9
GitHub Action Run
13 itest-fabric-iou - 30294154788.13 27 Jul 2026 06:44PM UTC 484
37.59
GitHub Action Run
14 utest - 30294154788.14 27 Jul 2026 06:39PM UTC 523
72.94
GitHub Action Run
15 itest-fabric-atsa - 30294154788.15 27 Jul 2026 06:42PM UTC 474
40.45
GitHub Action Run
16 itest-fsc-stoprestart - 30294154788.16 27 Jul 2026 06:39PM UTC 272
28.77
GitHub Action Run
17 itest-fabric-runtimeconfig - 30294154788.17 27 Jul 2026 06:38PM UTC 484
35.47
GitHub Action Run
Source Files on build 30294154788
  • Tree
  • List 532
  • Changed 29
  • Source Changed 3
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30294154788
  • 4e9ea34d on github
  • Prev Build on main (#30294090796)
  • Next Build on main (#30338257600)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc