Skip to content

Consider having a map and request header Carrier in SDK #2243

@rakyll

Description

@rakyll

The propagation package is a highly generic package and it requires users to implement common cases from scratch by implementing the interfaces. Two of these interfaces are implementation with the builtin map type and a carrier that works with a request object.

It's be useful to provide two Carrier implementations out of the box from the SDK or somewhere else:

func NewMapCarrier(m map[string][]byte) propagation.Carrier
func NewHeaderCarrier(h http.Header) propagation.Carrier

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions