It is common to store meta-data about a web service request in a context.Context and also common to want to log this information in access logs and application log prefixes.
It unsafe to provide direct access to contexts (i.e. read information directly out of the context) and also not possible if the keys to the context value is not a string.
Instead Granitic will support a new interface which will allow applications to create a component that provides a limited view of context data as a extension of map[string]string
It is common to store meta-data about a web service request in a context.Context and also common to want to log this information in access logs and application log prefixes.
It unsafe to provide direct access to contexts (i.e. read information directly out of the context) and also not possible if the keys to the context value is not a string.
Instead Granitic will support a new interface which will allow applications to create a component that provides a limited view of context data as a extension of map[string]string