Inspector
BlogTry for free
  • Concepts
    • Introduction
    • Metrics
    • Notification Channels
      • Email
      • Slack
      • Telegram
      • Microsoft Teams
      • Google Chat
      • Webhook
      • Discord
      • Pushover
      • PagerDuty
      • Twilio - SMS
    • Filtering Syntax
    • Alerts
    • Grouping Patterns
    • Custom Segments
    • Billing
    • AI Bug Fixer
  • Security and access
    • Access control
    • Two-factor authentication
    • Connected Devices
  • SDK
    • PHP
      • Installation & Set Up
      • Custom Segments
      • Exceptions Monitoring
      • Configuration
    • Laravel / Lumen
      • Upgrade Guide
      • Installation & Set-up
      • Http Requests Monitoring
      • Configuration
      • Exception Monitoring
      • Laravel Vapor
      • Laravel Octane
      • Laravel Nova Tool
      • Group by service name
    • Symfony
      • Installation
      • Configuration
      • Exception Monitoring
    • CodeIgniter
      • Installation
      • Configuration
      • Exception Monitoring
    • Drupal
    • Spring Boot
    • Slim
    • NodeJS
      • Configurations
      • Custom Segments
      • Exception monitoring
      • Autowiring
    • ExpressJs
    • Fastify
    • Python
    • Django
      • Installation & Set Up
      • Custom Segments
      • Error Monitoring
  • REST API
    • Authentication
    • Apps
    • Platforms
    • Transactions
    • Segments
    • Analytics
Powered by GitBook
On this page
  • enable (boolean)
  • maxEntries (integer)
  • autoWiring (boolean)
  • modules (Array)
  1. SDK
  2. NodeJS

Configurations

Customize the module behaviour.

Here are the list of the others parameters that you can use to customize the behaviour of the inspector module.

enable (boolean)

If desired, you may disable data transfer setting to false the enable configuration option. It could be useful if need to turn on/off monitoring via enviroment files.

{
   ingestionKey: 'xxxxx',
   enabled: process.env.INSPECTOR_ENABLED||true
}

maxEntries (integer)

Max numebr of items recorded during an execution cycle. 100 by default.

{
   ingestionKey: 'xxxxx',
   maxEntries: process.env.INSPECTOR_MAX_ENTRIES||500
}

autoWiring (boolean)

By default Inspector automatically detect the modules required in your application to monitoring their interactions.

You can turn off the auto-wiring and set the list of the module to be monitored manually in the "modules" configuration option.

{
   ingestionKey: 'xxxxx',
   autoWiring: false,
   node_modules: [...]
}

modules (Array)

The list of the module that you want take in consideration for your monitoring needs.

{
   ingestionKey: 'xxxxx',
   autoWiring: false,
   node_modules: ['express', 'mysql2', 'mongodb']
}
PreviousNodeJSNextCustom Segments

Last updated 3 years ago