Refactor plugin to docplanner namespace with full project scaffolding CORE-384#1
Merged
rodrigoechaide merged 3 commits intomainfrom Mar 4, 2026
Merged
Conversation
Migrate the module from github.com/mdklapwijk/traefik-plugin-request-id to github.com/docplanner/requestid and restructure the project to follow the same conventions as the header-map plugin. Changes: - Rename module to github.com/docplanner/requestid - Rename main.go to requestid.go with idiomatic package name - Refactor handler to named struct with ServeHTTP method - Add unit tests with 100% coverage - Add Makefile (lint, test, vendor, clean) - Add .golangci.yml (v2 format, all linters enabled) - Add docker/ setup for local testing with Traefik - Add GitHub Actions CI workflow - Rewrite README with configuration reference and credits - Refresh vendor directory Credits to github.com/mdklapwijk/traefik-plugin-request-id for the original implementation.
…e libraries instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.com/mdklapwijk/traefik-plugin-request-idtogithub.com/docplanner/requestidmain.gotorequestid.gowith idiomatic package name and refactored handler to a named struct withServeHTTPmethodrequestid_test.go) with 100% code coverageMakefilewithlint,test,vendor, andcleantargets.golangci.yml(v2 format, all linters enabled)docker/setup for local testing with Traefik (docker-compose + traefik static/dynamic config)README.mdwith full configuration reference, Docker Compose instructions, and credits to the original authorTest plan
make testpasses (8/8 tests, 100% coverage)make lintpasses (0 issues)docker compose upindocker/starts Traefik with the plugin loadedcurl -sv http://localhost:8888/returnsX-Request-IDheader with a UUIDv4 value