Skip to content

Support restana server factory

Compare
Choose a tag to compare
@jkyberneees jkyberneees released this 13 Dec 09:57
· 248 commits to master since this release
f6cfd1e

In this release we extend the gateway configuration related to restana, basically we are allowing to overwrite the restana instantiation inside the gateway by providing a factory method.

const gateway = require('fast-gateway')
const restana = require('restana')
const serverInstance = restana({})

const server = gateway({
  restana: () => serverInstance,
  //...
})

The goal is to allow more complex restana initialisations such as the Elastic APM support.