graniticio / granitic

Web/micro-services and IoC framework for Golang developers

Home Page:https://granitic.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create functions for storing and retrieving request IDs

benhalstead opened this issue · comments

Request instrumentation provides a useful pattern where application logic can recover an Instrumentor using exported functions without a component reference.

Implement a similar pattern for request IDs

New function ws.RequestID(context.Context) recovers the current request's ID from the context if it has been set.