Skip to content

SMOODEV-2023: Go Fiber + Gin observability middleware#58

Merged
brentrager merged 2 commits into
mainfrom
SMOODEV-2023-go-frameworks
Jun 21, 2026
Merged

SMOODEV-2023: Go Fiber + Gin observability middleware#58
brentrager merged 2 commits into
mainfrom
SMOODEV-2023-go-frameworks

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

Adds Fiber and Gin middleware (go/fiber, go/gin) mirroring the net/http middleware: per-request scope, request breadcrumb/enrichment, capture-then-rethrow, PII-scrubbed. Each is a SEPARATE go module so the core stays dependency-free. Extends the Go CI lane to vet/test per-module. All 3 modules: build/vet/gofmt/test green (50+5+5). Part of SMOODEV-2023 / epic 1981.

🤖 Generated with Claude Code

brentrager and others added 2 commits June 20, 2026 20:39
Add Fiber and Gin middleware adapters as their own Go modules (go/fiber,
go/gin) so the core SDK takes no dependency on either framework unless
imported. Both mirror the net/http middleware semantics exactly: per-request
scope on the request context, user/request-context hydration (PII-scrubbed via
header allowlist, guarded so hydration can't break the request), and
capture-then-rethrow on panic (SwallowPanics writes a 500 instead). They also
capture handler-reported errors (returned error for Fiber, c.Errors for Gin).
Adds an exported Scope.User() accessor so cross-package adapters/tests can
inspect request scope. Updates README + the net/http middleware gap note.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 391d5d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@brentrager brentrager merged commit 04f569d into main Jun 21, 2026
6 checks passed
@brentrager brentrager deleted the SMOODEV-2023-go-frameworks branch June 21, 2026 00:45
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.

1 participant