feat: plugin contract e2e, qualify --changed, production observe, regressions
This commit is contained in:
@@ -136,7 +136,12 @@ import { createFastify } from '@apophis/fastify'
|
||||
|
||||
const app = await createFastify({
|
||||
logger: true,
|
||||
apophis: { runtime: process.env.NODE_ENV === 'test' ? 'error' : 'off' },
|
||||
apophis: {
|
||||
runtime: process.env.NODE_ENV === 'test' ? 'error' : 'off',
|
||||
observe: process.env.NODE_ENV === 'production'
|
||||
? { enabled: true, sampling: 0.1, sinks: [metricsSink] } // your ObserveSink
|
||||
: undefined,
|
||||
},
|
||||
})
|
||||
// Register swagger, auth, plugins, and routes after app creation.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user