@sentienguard/apm 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,7 +11,10 @@ npm install @sentienguard/apm
11
11
  ## Quick Start
12
12
 
13
13
  ```js
14
- // Add this as the FIRST import in your app
14
+ // If using dotenv, import it first
15
+ import 'dotenv/config';
16
+
17
+ // Then import the SDK (before other app modules for best instrumentation coverage)
15
18
  import '@sentienguard/apm';
16
19
 
17
20
  // Your app code
@@ -56,6 +59,7 @@ All configuration is via environment variables:
56
59
  For better route extraction, add the middleware:
57
60
 
58
61
  ```js
62
+ import 'dotenv/config'; // if using dotenv
59
63
  import '@sentienguard/apm';
60
64
  import { expressMiddleware, expressErrorMiddleware } from '@sentienguard/apm';
61
65
  import express from 'express';
@@ -75,6 +79,7 @@ app.use(expressErrorMiddleware());
75
79
  ### Fastify
76
80
 
77
81
  ```js
82
+ import 'dotenv/config'; // if using dotenv
78
83
  import '@sentienguard/apm';
79
84
  import { fastifyPlugin, fastifyErrorHandler } from '@sentienguard/apm';
80
85
  import Fastify from 'fastify';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentienguard/apm",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "SentienGuard APM SDK - Minimal, production-safe application performance monitoring",
5
5
  "main": "src/index.js",
6
6
  "type": "module",