securenow 5.18.0 → 6.0.0

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.
Files changed (85) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +40 -239
  3. package/cli.js +455 -415
  4. package/console-instrumentation.js +136 -147
  5. package/docs/ALL-FRAMEWORKS-QUICKSTART.md +455 -1339
  6. package/docs/ARCHITECTURE.md +3 -3
  7. package/docs/AUTO-BODY-CAPTURE.md +1 -1
  8. package/docs/AUTO-SETUP.md +4 -4
  9. package/docs/AUTOMATIC-IP-CAPTURE.md +5 -5
  10. package/docs/BODY-CAPTURE-QUICKSTART.md +2 -2
  11. package/docs/CHANGELOG-NEXTJS.md +1 -1
  12. package/docs/CUSTOMER-GUIDE.md +16 -16
  13. package/docs/EASIEST-SETUP.md +5 -5
  14. package/docs/ENVIRONMENT-VARIABLES.md +652 -880
  15. package/docs/EXPRESS-BODY-CAPTURE.md +12 -13
  16. package/docs/EXPRESS-SETUP-GUIDE.md +720 -719
  17. package/docs/INDEX.md +4 -22
  18. package/docs/LOGGING-GUIDE.md +708 -701
  19. package/docs/LOGGING-QUICKSTART.md +239 -234
  20. package/docs/NEXTJS-BODY-CAPTURE.md +2 -2
  21. package/docs/NEXTJS-GUIDE.md +14 -14
  22. package/docs/NEXTJS-QUICKSTART.md +1 -1
  23. package/docs/NEXTJS-WRAPPER-APPROACH.md +1 -1
  24. package/docs/QUICKSTART-BODY-CAPTURE.md +2 -2
  25. package/docs/REDACTION-EXAMPLES.md +1 -1
  26. package/docs/REQUEST-BODY-CAPTURE.md +10 -19
  27. package/docs/VERCEL-OTEL-MIGRATION.md +3 -3
  28. package/examples/README.md +6 -6
  29. package/examples/instrumentation-with-auto-capture.ts +1 -1
  30. package/examples/nextjs-env-example.txt +2 -2
  31. package/examples/nextjs-instrumentation.js +1 -1
  32. package/examples/nextjs-instrumentation.ts +1 -1
  33. package/examples/nextjs-with-logging-example.md +6 -6
  34. package/examples/nextjs-with-options.ts +1 -1
  35. package/examples/test-nextjs-setup.js +1 -1
  36. package/nextjs-auto-capture.js +207 -199
  37. package/nextjs-middleware.js +181 -186
  38. package/nextjs-webpack-config.js +53 -88
  39. package/nextjs-wrapper.js +158 -158
  40. package/nextjs.d.ts +1 -1
  41. package/nextjs.js +135 -190
  42. package/package.json +45 -67
  43. package/postinstall.js +6 -6
  44. package/register.d.ts +1 -1
  45. package/register.js +4 -39
  46. package/tracing.d.ts +1 -2
  47. package/tracing.js +22 -287
  48. package/web-vite.mjs +156 -239
  49. package/CONSUMING-APPS-GUIDE.md +0 -455
  50. package/NPM_README.md +0 -1933
  51. package/SKILL-API.md +0 -600
  52. package/SKILL-CLI.md +0 -409
  53. package/cidr.js +0 -83
  54. package/cli/apps.js +0 -585
  55. package/cli/auth.js +0 -280
  56. package/cli/client.js +0 -115
  57. package/cli/config.js +0 -173
  58. package/cli/firewall.js +0 -100
  59. package/cli/fp.js +0 -638
  60. package/cli/init.js +0 -201
  61. package/cli/monitor.js +0 -440
  62. package/cli/run.js +0 -133
  63. package/cli/security.js +0 -1064
  64. package/cli/ui.js +0 -386
  65. package/docs/API-KEYS-GUIDE.md +0 -233
  66. package/docs/AUTO-SETUP-SUMMARY.md +0 -331
  67. package/docs/BODY-CAPTURE-FIX.md +0 -261
  68. package/docs/COMPLETION-REPORT.md +0 -408
  69. package/docs/FINAL-SOLUTION.md +0 -335
  70. package/docs/FIREWALL-GUIDE.md +0 -426
  71. package/docs/IMPLEMENTATION-SUMMARY.md +0 -410
  72. package/docs/NEXTJS-BODY-CAPTURE-COMPARISON.md +0 -323
  73. package/docs/NEXTJS-SETUP-COMPLETE.md +0 -795
  74. package/docs/NUXT-GUIDE.md +0 -166
  75. package/docs/SOLUTION-SUMMARY.md +0 -312
  76. package/firewall-cloud.js +0 -212
  77. package/firewall-iptables.js +0 -139
  78. package/firewall-only.js +0 -38
  79. package/firewall-tcp.js +0 -74
  80. package/firewall.js +0 -720
  81. package/free-trial-banner.js +0 -174
  82. package/nuxt-server-plugin.mjs +0 -423
  83. package/nuxt.d.ts +0 -60
  84. package/nuxt.mjs +0 -75
  85. package/resolve-ip.js +0 -77
@@ -1,234 +1,239 @@
1
- # SecureNow Logging - Quick Start
2
-
3
- Get logging set up in your Node.js app in under 2 minutes!
4
-
5
- **Since v5.6.0:** When `SECURENOW_LOGGING_ENABLED=1` is set, all `console.log` / `warn` / `error` / `info` / `debug` calls are automatically forwarded as OTLP log records. You only need `require('securenow/register')`—a separate `console-instrumentation` preload is no longer required.
6
-
7
- ---
8
-
9
- ## 1. Install
10
-
11
- ```bash
12
- npm install securenow
13
- ```
14
-
15
- ---
16
-
17
- ## 2. Configure Environment
18
-
19
- Create `.env` file or export variables:
20
-
21
- ```bash
22
- SECURENOW_LOGGING_ENABLED=1
23
- SECURENOW_APPID=my-app
24
- SECURENOW_INSTANCE=http://your-otlp-backend:4318
25
-
26
- # For SecureNow / hosted OTLP (example):
27
- # SECURENOW_INSTANCE=https://freetrial.securenow.ai:4318
28
- # OTEL_EXPORTER_OTLP_HEADERS="x-api-key=<your-key>"
29
- ```
30
-
31
- ---
32
-
33
- ## 3. Add to Your App
34
-
35
- **Option A: Automatic Console Logging (Easiest)**
36
-
37
- Add this line at the top of your main file:
38
-
39
- ```javascript
40
- // app.js, index.js, server.js, or main.ts
41
- require('securenow/register');
42
-
43
- // That's it! Now use console normally
44
- console.log('App started');
45
- console.error('An error occurred', { userId: 123 });
46
- ```
47
-
48
- **Option B: Use NODE_OPTIONS (No code changes)**
49
-
50
- ```bash
51
- NODE_OPTIONS="-r securenow/register" node app.js
52
- ```
53
-
54
- ---
55
-
56
- ## 4. Run Your App
57
-
58
- ```bash
59
- node app.js
60
- # or
61
- npm start
62
- ```
63
-
64
- You should see:
65
-
66
- ```
67
- [securenow] OTel SDK started → http://your-otlp-backend:4318/v1/traces
68
- [securenow] 📋 Logging: ENABLED → http://your-otlp-backend:4318/v1/logs
69
- ```
70
-
71
- ---
72
-
73
- ## 5. View Logs in SecureNow
74
-
75
- 1. Open your SecureNow dashboard
76
- 2. Go to **Logs** section
77
- 3. Filter by `service.name = my-app`
78
- 4. See all your logs with automatic trace correlation!
79
-
80
- ---
81
-
82
- ## Framework-Specific Examples
83
-
84
- ### Express.js
85
-
86
- ```javascript
87
- // app.js
88
- require('securenow/register');
89
-
90
- const express = require('express');
91
- const app = express();
92
-
93
- app.get('/', (req, res) => {
94
- console.log('Request received');
95
- res.send('Hello World');
96
- });
97
-
98
- app.listen(3000);
99
- ```
100
-
101
- ### Next.js
102
-
103
- ```typescript
104
- // instrumentation.ts (in project root)
105
- export async function register() {
106
- if (process.env.NEXT_RUNTIME === 'nodejs') {
107
- process.env.SECURENOW_LOGGING_ENABLED = '1';
108
- await import('securenow/register');
109
- }
110
- }
111
- ```
112
-
113
- ```bash
114
- # .env.local
115
- SECURENOW_LOGGING_ENABLED=1
116
- SECURENOW_APPID=my-nextjs-app
117
- SECURENOW_INSTANCE=http://localhost:4318
118
- ```
119
-
120
- ### Fastify
121
-
122
- ```javascript
123
- // server.js
124
- require('securenow/register');
125
-
126
- const fastify = require('fastify')();
127
-
128
- fastify.get('/', async () => {
129
- console.log('Route called');
130
- return { hello: 'world' };
131
- });
132
-
133
- fastify.listen({ port: 3000 });
134
- ```
135
-
136
- ### NestJS
137
-
138
- ```typescript
139
- // main.ts
140
- require('securenow/register');
141
-
142
- import { NestFactory } from '@nestjs/core';
143
- import { AppModule } from './app.module';
144
-
145
- async function bootstrap() {
146
- const app = await NestFactory.create(AppModule);
147
- console.log('App starting');
148
- await app.listen(3000);
149
- }
150
-
151
- bootstrap();
152
- ```
153
-
154
- ---
155
-
156
- ## Troubleshooting
157
-
158
- **Logs not appearing?**
159
-
160
- 1. Check `SECURENOW_LOGGING_ENABLED=1` is set
161
- 2. Verify your OTLP / SecureNow endpoint is correct
162
- 3. Enable debug: `OTEL_LOG_LEVEL=debug`
163
-
164
- **Console logs not forwarding?**
165
-
166
- Load `securenow/register` before other app code so logging hooks run first:
167
-
168
- ```javascript
169
- // ✅ Correct
170
- require('securenow/register'); // First
171
-
172
- // ❌ Wrong
173
- require('express');
174
- require('securenow/register'); // Too late!
175
- ```
176
-
177
- ---
178
-
179
- ## What Gets Logged?
180
-
181
- All standard console methods:
182
-
183
- - `console.log()` → INFO
184
- - `console.info()` INFO
185
- - `console.warn()` → WARN
186
- - `console.error()` → ERROR
187
- - `console.debug()` → DEBUG
188
-
189
- **Structured logging example:**
190
-
191
- ```javascript
192
- console.log('User logged in', {
193
- userId: 123,
194
- email: 'user@example.com',
195
- ip: '192.168.1.1'
196
- });
197
- ```
198
-
199
- This creates a log with attributes you can filter/search in SecureNow!
200
-
201
- ---
202
-
203
- ## Advanced Usage
204
-
205
- **Direct Logger API:**
206
-
207
- ```javascript
208
- const { getLogger } = require('securenow/tracing');
209
- const logger = getLogger('my-module', '1.0.0');
210
-
211
- logger.emit({
212
- severityNumber: 9,
213
- severityText: 'INFO',
214
- body: 'Custom log message',
215
- attributes: {
216
- customField: 'value',
217
- },
218
- });
219
- ```
220
-
221
- ---
222
-
223
- ## Next Steps
224
-
225
- - [Complete Logging Guide](./LOGGING-GUIDE.md) - All features and options
226
- - [SecureNow](https://securenow.ai/)
227
- - [Documentation](./INDEX.md)
228
- - [Combine with Tracing](../README.md) - Full observability
229
-
230
- ---
231
-
232
- **That's it!** 🎉 Your app is now sending logs to SecureNow.
233
-
234
- Need help? Check the [full documentation](./LOGGING-GUIDE.md) or open an issue.
1
+ # SecureNow Logging - Quick Start
2
+
3
+ Get logging set up in your Node.js app in under 2 minutes!
4
+
5
+ ---
6
+
7
+ ## 1. Install
8
+
9
+ ```bash
10
+ npm install securenow
11
+ ```
12
+
13
+ ---
14
+
15
+ ## 2. Configure Environment
16
+
17
+ Create `.env` file or export variables:
18
+
19
+ ```bash
20
+ SECURENOW_LOGGING_ENABLED=1
21
+ SECURENOW_APPID=my-app
22
+ SECURENOW_INSTANCE=http://your-signoz-server:4318
23
+
24
+ # For SigNoz Cloud:
25
+ # SECURENOW_INSTANCE=https://ingest.<region>.signoz.cloud:443
26
+ # OTEL_EXPORTER_OTLP_HEADERS="signoz-ingestion-key=<your-key>"
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 3. Add to Your App
32
+
33
+ **Option A: Automatic Console Logging (Easiest)**
34
+
35
+ Add these two lines at the top of your main file:
36
+
37
+ ```javascript
38
+ // app.js, index.js, server.js, or main.ts
39
+ require('securenow/register');
40
+ require('securenow/console-instrumentation');
41
+
42
+ // That's it! Now use console normally
43
+ console.log('App started');
44
+ console.error('An error occurred', { userId: 123 });
45
+ ```
46
+
47
+ **Option B: Use NODE_OPTIONS (No code changes)**
48
+
49
+ ```bash
50
+ NODE_OPTIONS="-r securenow/register -r securenow/console-instrumentation" node app.js
51
+ ```
52
+
53
+ ---
54
+
55
+ ## 4. Run Your App
56
+
57
+ ```bash
58
+ node app.js
59
+ # or
60
+ npm start
61
+ ```
62
+
63
+ You should see:
64
+
65
+ ```
66
+ [securenow] OTel SDK started → http://your-signoz-server:4318/v1/traces
67
+ [securenow] 📋 Logging: ENABLED → http://your-signoz-server:4318/v1/logs
68
+ [securenow] Console instrumentation installed
69
+ ```
70
+
71
+ ---
72
+
73
+ ## 5. View Logs in SigNoz
74
+
75
+ 1. Open your SigNoz dashboard
76
+ 2. Go to **Logs** section
77
+ 3. Filter by `service.name = my-app`
78
+ 4. See all your logs with automatic trace correlation!
79
+
80
+ ---
81
+
82
+ ## Framework-Specific Examples
83
+
84
+ ### Express.js
85
+
86
+ ```javascript
87
+ // app.js
88
+ require('securenow/register');
89
+ require('securenow/console-instrumentation');
90
+
91
+ const express = require('express');
92
+ const app = express();
93
+
94
+ app.get('/', (req, res) => {
95
+ console.log('Request received');
96
+ res.send('Hello World');
97
+ });
98
+
99
+ app.listen(3000);
100
+ ```
101
+
102
+ ### Next.js
103
+
104
+ ```typescript
105
+ // instrumentation.ts (in project root)
106
+ export async function register() {
107
+ if (process.env.NEXT_RUNTIME === 'nodejs') {
108
+ process.env.SECURENOW_LOGGING_ENABLED = '1';
109
+ await import('securenow/register');
110
+ await import('securenow/console-instrumentation');
111
+ }
112
+ }
113
+ ```
114
+
115
+ ```bash
116
+ # .env.local
117
+ SECURENOW_LOGGING_ENABLED=1
118
+ SECURENOW_APPID=my-nextjs-app
119
+ SECURENOW_INSTANCE=http://localhost:4318
120
+ ```
121
+
122
+ ### Fastify
123
+
124
+ ```javascript
125
+ // server.js
126
+ require('securenow/register');
127
+ require('securenow/console-instrumentation');
128
+
129
+ const fastify = require('fastify')();
130
+
131
+ fastify.get('/', async () => {
132
+ console.log('Route called');
133
+ return { hello: 'world' };
134
+ });
135
+
136
+ fastify.listen({ port: 3000 });
137
+ ```
138
+
139
+ ### NestJS
140
+
141
+ ```typescript
142
+ // main.ts
143
+ require('securenow/register');
144
+ require('securenow/console-instrumentation');
145
+
146
+ import { NestFactory } from '@nestjs/core';
147
+ import { AppModule } from './app.module';
148
+
149
+ async function bootstrap() {
150
+ const app = await NestFactory.create(AppModule);
151
+ console.log('App starting');
152
+ await app.listen(3000);
153
+ }
154
+
155
+ bootstrap();
156
+ ```
157
+
158
+ ---
159
+
160
+ ## Troubleshooting
161
+
162
+ **Logs not appearing?**
163
+
164
+ 1. Check `SECURENOW_LOGGING_ENABLED=1` is set
165
+ 2. Verify SigNoz endpoint is correct
166
+ 3. Enable debug: `OTEL_LOG_LEVEL=debug`
167
+
168
+ **Console instrumentation not working?**
169
+
170
+ Make sure require order is correct:
171
+
172
+ ```javascript
173
+ // ✅ Correct
174
+ require('securenow/register'); // First
175
+ require('securenow/console-instrumentation'); // Second
176
+
177
+ // ❌ Wrong
178
+ require('express');
179
+ require('securenow/register'); // Too late!
180
+ ```
181
+
182
+ ---
183
+
184
+ ## What Gets Logged?
185
+
186
+ All standard console methods:
187
+
188
+ - `console.log()` → INFO
189
+ - `console.info()` → INFO
190
+ - `console.warn()` → WARN
191
+ - `console.error()` → ERROR
192
+ - `console.debug()` DEBUG
193
+
194
+ **Structured logging example:**
195
+
196
+ ```javascript
197
+ console.log('User logged in', {
198
+ userId: 123,
199
+ email: 'user@example.com',
200
+ ip: '192.168.1.1'
201
+ });
202
+ ```
203
+
204
+ This creates a log with attributes you can filter/search in SigNoz!
205
+
206
+ ---
207
+
208
+ ## Advanced Usage
209
+
210
+ **Direct Logger API:**
211
+
212
+ ```javascript
213
+ const { getLogger } = require('securenow/tracing');
214
+ const logger = getLogger('my-module', '1.0.0');
215
+
216
+ logger.emit({
217
+ severityNumber: 9,
218
+ severityText: 'INFO',
219
+ body: 'Custom log message',
220
+ attributes: {
221
+ customField: 'value',
222
+ },
223
+ });
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Next Steps
229
+
230
+ - [Complete Logging Guide](./LOGGING-GUIDE.md) - All features and options
231
+ - [View Logs in SigNoz](https://signoz.io/docs/logs-management/overview/)
232
+ - [Set Up Log Alerts](https://signoz.io/docs/alerts-management/log-based-alerts/)
233
+ - [Combine with Tracing](../README.md) - Full observability
234
+
235
+ ---
236
+
237
+ **That's it!** 🎉 Your app is now sending logs to SigNoz.
238
+
239
+ Need help? Check the [full documentation](./LOGGING-GUIDE.md) or open an issue.
@@ -213,7 +213,7 @@ your-nextjs-app/
213
213
  -d '{"username":"test","password":"secret123"}'
214
214
  ```
215
215
 
216
- 4. **Check SecureNow:**
216
+ 4. **Check SigNoz:**
217
217
  - Find the `/api/test` trace
218
218
  - Look for `http.request.body` attribute
219
219
  - Verify password shows `[REDACTED]`
@@ -259,7 +259,7 @@ export const config = {
259
259
  ```bash
260
260
  # Required
261
261
  SECURENOW_APPID=my-nextjs-app
262
- SECURENOW_INSTANCE=http://your-otlp-backend:4318
262
+ SECURENOW_INSTANCE=http://your-signoz:4318
263
263
 
264
264
  # Optional: Enable body capture
265
265
  SECURENOW_CAPTURE_BODY=1
@@ -1,6 +1,6 @@
1
1
  # SecureNow for Next.js - Complete Integration Guide
2
2
 
3
- Send traces and logs from your Next.js app to SecureNow or any OTLP-compatible backend in under 2 minutes.
3
+ Send traces and logs from your Next.js app to SigNoz (or any OpenTelemetry-compatible backend) in under 2 minutes.
4
4
 
5
5
  ## 🚀 Quick Start (2 Simple Steps!)
6
6
 
@@ -27,11 +27,11 @@ pnpm add securenow
27
27
  Edit the `.env.local` file that was created:
28
28
 
29
29
  ```bash
30
- # Required: Your app name (shows up in SecureNow)
30
+ # Required: Your app name (shows up in SigNoz)
31
31
  SECURENOW_APPID=my-nextjs-app
32
32
 
33
- # Required: Your OTLP endpoint
34
- SECURENOW_INSTANCE=http://your-otlp-backend:4318
33
+ # Required: Your SigNoz server endpoint
34
+ SECURENOW_INSTANCE=http://your-signoz-server:4318
35
35
 
36
36
  # Optional: API key for authentication
37
37
  OTEL_EXPORTER_OTLP_HEADERS="x-api-key=your-api-key-here"
@@ -155,7 +155,7 @@ See [REQUEST-BODY-CAPTURE.md](./REQUEST-BODY-CAPTURE.md) for full details.
155
155
  SECURENOW_APPID=my-nextjs-app
156
156
 
157
157
  # Optional Configuration
158
- SECURENOW_INSTANCE=http://your-otlp-backend:4318
158
+ SECURENOW_INSTANCE=http://your-signoz-server:4318
159
159
  SECURENOW_NO_UUID=1 # Don't append UUID (useful for dev)
160
160
  OTEL_LOG_LEVEL=info # debug|info|warn|error
161
161
  SECURENOW_DISABLE_INSTRUMENTATIONS=fs,dns # Disable specific instrumentations
@@ -178,7 +178,7 @@ import { registerSecureNow } from 'securenow/nextjs';
178
178
  export function register() {
179
179
  registerSecureNow({
180
180
  serviceName: 'my-nextjs-app',
181
- endpoint: 'http://your-otlp-backend:4318',
181
+ endpoint: 'http://your-signoz-server:4318',
182
182
  noUuid: false,
183
183
  disableInstrumentations: ['fs', 'dns'],
184
184
  headers: {
@@ -243,7 +243,7 @@ COPY . .
243
243
  RUN npm run build
244
244
 
245
245
  ENV SECURENOW_APPID=my-nextjs-app
246
- ENV SECURENOW_INSTANCE=http://otel-collector:4318
246
+ ENV SECURENOW_INSTANCE=http://signoz:4318
247
247
 
248
248
  EXPOSE 3000
249
249
  CMD ["npm", "start"]
@@ -255,7 +255,7 @@ Just set environment variables and run:
255
255
 
256
256
  ```bash
257
257
  export SECURENOW_APPID=my-nextjs-app
258
- export SECURENOW_INSTANCE=http://your-otlp-backend:4318
258
+ export SECURENOW_INSTANCE=http://your-signoz-server:4318
259
259
  npm start
260
260
  ```
261
261
 
@@ -288,14 +288,14 @@ Make sure you're on the latest version:
288
288
  npm install securenow@latest
289
289
  ```
290
290
 
291
- ### Traces not appearing in SecureNow
291
+ ### Traces not appearing in SigNoz
292
292
 
293
293
  1. **Check endpoint:**
294
294
  ```bash
295
- curl http://your-otlp-backend:4318/v1/traces
295
+ curl http://your-signoz-server:4318/v1/traces
296
296
  ```
297
297
 
298
- 2. **Verify connectivity:** Make sure your app can reach your OTLP backend (or SecureNow)
298
+ 2. **Verify connectivity:** Make sure your app can reach SigNoz
299
299
 
300
300
  3. **Check authentication:** If using API keys, verify headers
301
301
 
@@ -311,7 +311,7 @@ SECURENOW_DISABLE_INSTRUMENTATIONS=fs,dns,net
311
311
  ## 📖 Comparison with Other Solutions
312
312
 
313
313
  ### vs. `@vercel/otel`
314
- - ✅ **SecureNow**: Pre-configured for OTLP / SecureNow, includes auto-instrumentations
314
+ - ✅ **SecureNow**: Pre-configured for SigNoz, includes auto-instrumentations
315
315
  - ⚠️ **@vercel/otel**: Requires manual instrumentation setup
316
316
 
317
317
  ### vs. Manual OpenTelemetry Setup
@@ -375,7 +375,7 @@ Check the `examples/` folder for:
375
375
 
376
376
  - **Issues:** [GitHub Issues](https://github.com/your-repo/securenow/issues)
377
377
  - **Documentation:** [Full Documentation](https://your-docs-site.com)
378
- - **SecureNow:** [securenow.ai](https://securenow.ai/)
378
+ - **SigNoz Docs:** [SigNoz OpenTelemetry Docs](https://signoz.io/docs/)
379
379
 
380
380
  ---
381
381
 
@@ -385,5 +385,5 @@ ISC
385
385
 
386
386
  ---
387
387
 
388
- **Made with ❤️ for the Next.js and SecureNow community**
388
+ **Made with ❤️ for the Next.js and SigNoz community**
389
389
 
@@ -59,7 +59,7 @@ Look for:
59
59
  [securenow] ✅ OpenTelemetry started for Next.js
60
60
  ```
61
61
 
62
- Open SecureNow → check for traces from `my-nextjs-app`
62
+ Open SigNoz → check for traces from `my-nextjs-app`
63
63
 
64
64
  ---
65
65
 
@@ -241,7 +241,7 @@ export function register() {
241
241
  ```bash
242
242
  # Required
243
243
  SECURENOW_APPID=my-nextjs-app
244
- SECURENOW_INSTANCE=http://otel-collector:4318
244
+ SECURENOW_INSTANCE=http://signoz:4318
245
245
 
246
246
  # Optional: Enable body capture
247
247
  SECURENOW_CAPTURE_BODY=1
@@ -8,7 +8,7 @@ This approach **never interferes** with your middleware or routing.
8
8
 
9
9
  ```bash
10
10
  SECURENOW_APPID=my-app
11
- SECURENOW_INSTANCE=http://otel-collector:4318
11
+ SECURENOW_INSTANCE=http://signoz:4318
12
12
  SECURENOW_CAPTURE_BODY=1
13
13
  ```
14
14
 
@@ -155,7 +155,7 @@ export async function GET() {
155
155
  ```bash
156
156
  # Required
157
157
  SECURENOW_APPID=my-nextjs-app
158
- SECURENOW_INSTANCE=http://your-otlp-backend:4318
158
+ SECURENOW_INSTANCE=http://your-signoz:4318
159
159
 
160
160
  # Body capture
161
161
  SECURENOW_CAPTURE_BODY=1 # Enable body capture
@@ -439,7 +439,7 @@ If "token" is sensitive, these get redacted:
439
439
  -d '{"username":"test","password":"secret123"}'
440
440
  ```
441
441
 
442
- 3. **Check SecureNow:**
442
+ 3. **Check SigNoz:**
443
443
  - Find the trace
444
444
  - Look for `http.request.body`
445
445
  - Verify password shows `[REDACTED]`