Skip to content

Allow converting a context to headers

Sean McGivern requested to merge convert-context-to-headers into master

Labkit::Context#to_headers works like #to_h, but:

  1. Excludes the correlation ID (which will already be set in another header).
  2. Has keys suitable for use in HTTP headers, prefixed with Labkit::Context::HEADER_PREFIX.

For gitlab-com/gl-infra/scalability#128.

Merge request reports