unicity-forward-headers

1.0.4 • Public • Published

Unicity-Forward-Headers

About

Forwards the following headers:

[
	'x-request-uuid',
	'x-request-release',

	// Envoy Headers
	'x-ot-span-context',
	'x-request-id',

	// Zipkin Headers
	'x-b3-traceid',
	'x-b3-spanid',
	'x-b3-parentspanid',
	'x-b3-sampled',

	// Jaeger Headers
	'x-b3-flags'
]

Whats new?

1.0.3

Breaking changes, unicity-forward-headers now expects the headers object directly and not request or response objects. Also made it lowercase incoming headers to ensure dupliates are handled correctly.

Example

const ForwardHeaders = require('unicity-forward-headers');

response.headers = ForwardHeaders(request.headers, response.headers);
const ForwardHeaders = require('unicity-forward-headers');

response.headers = ForwardHeaders(request.headers);

Readme

Keywords

none

Package Sidebar

Install

npm i unicity-forward-headers

Weekly Downloads

17

Version

1.0.4

License

none

Unpacked Size

2.89 kB

Total Files

4

Last publish

Collaborators

  • loothee
  • dmarc-unicity
  • alexjones
  • guneets_unicity
  • dmiller1006
  • jerazo
  • derekhansenunicity
  • powerc9000
  • ehrendavis12
  • lukecfairchild
  • unicityit
  • mrmmattson