securenow 5.0.0 → 5.0.2
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/CONSUMING-APPS-GUIDE.md +415 -0
- package/NPM_README.md +1328 -0
- package/docs/ALL-FRAMEWORKS-QUICKSTART.md +455 -0
- package/docs/ENVIRONMENT-VARIABLES.md +652 -0
- package/docs/EXPRESS-SETUP-GUIDE.md +720 -0
- package/docs/INDEX.md +206 -147
- package/docs/NEXTJS-SETUP-COMPLETE.md +795 -0
- package/package.json +4 -2
- package/tracing.d.ts +182 -182
- package/tracing.js +2 -2
package/docs/INDEX.md
CHANGED
|
@@ -1,147 +1,206 @@
|
|
|
1
|
-
# SecureNow Documentation
|
|
2
|
-
|
|
3
|
-
Complete documentation for SecureNow - OpenTelemetry instrumentation for Node.js and Next.js with tracing and logging.
|
|
4
|
-
|
|
5
|
-
## 📚 Table of Contents
|
|
6
|
-
|
|
7
|
-
### 🚀 Getting Started
|
|
8
|
-
|
|
9
|
-
- **[
|
|
10
|
-
- **[
|
|
11
|
-
- **[
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- **[
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
- **[
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- **[Next.js
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- **[
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- **[
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
- **[
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
###
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
###
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
**
|
|
147
|
-
|
|
1
|
+
# SecureNow Documentation
|
|
2
|
+
|
|
3
|
+
Complete documentation for SecureNow - OpenTelemetry instrumentation for Node.js and Next.js with tracing and logging.
|
|
4
|
+
|
|
5
|
+
## 📚 Table of Contents
|
|
6
|
+
|
|
7
|
+
### 🚀 Getting Started
|
|
8
|
+
|
|
9
|
+
- **[NPM Package Documentation](../NPM_README.md)** - Complete npm package documentation
|
|
10
|
+
- **[All Frameworks Quick Start](ALL-FRAMEWORKS-QUICKSTART.md)** - Universal 5-minute setup
|
|
11
|
+
- **[Consuming Apps Guide](../CONSUMING-APPS-GUIDE.md)** - Simple guide for developers
|
|
12
|
+
- **[Customer Guide](CUSTOMER-GUIDE.md)** - Quick start guide for customers
|
|
13
|
+
- **[Auto Setup](AUTO-SETUP.md)** - Automated setup instructions
|
|
14
|
+
- **[Auto Setup Summary](AUTO-SETUP-SUMMARY.md)** - Summary of auto-setup features
|
|
15
|
+
|
|
16
|
+
### 📋 Logging
|
|
17
|
+
|
|
18
|
+
- **[Logging Quick Start](LOGGING-QUICKSTART.md)** - Add logging to your app in 2 minutes
|
|
19
|
+
- **[Logging Complete Guide](LOGGING-GUIDE.md)** - Full logging setup for all frameworks
|
|
20
|
+
- Express.js logging examples
|
|
21
|
+
- Next.js logging examples
|
|
22
|
+
- Fastify logging examples
|
|
23
|
+
- NestJS logging examples
|
|
24
|
+
- Console instrumentation
|
|
25
|
+
- Direct logger API usage
|
|
26
|
+
|
|
27
|
+
### 🎯 Framework-Specific Guides
|
|
28
|
+
|
|
29
|
+
- **[Express.js Complete Setup](EXPRESS-SETUP-GUIDE.md)** - Step-by-step Express.js guide
|
|
30
|
+
- Basic setup
|
|
31
|
+
- TypeScript setup
|
|
32
|
+
- PM2 configuration
|
|
33
|
+
- Docker setup
|
|
34
|
+
- Complete examples
|
|
35
|
+
- **[Next.js Complete Setup](NEXTJS-SETUP-COMPLETE.md)** - Step-by-step Next.js guide
|
|
36
|
+
- App Router setup
|
|
37
|
+
- Pages Router setup
|
|
38
|
+
- API routes examples
|
|
39
|
+
- Server components
|
|
40
|
+
- Middleware
|
|
41
|
+
- Deployment guides
|
|
42
|
+
|
|
43
|
+
### 📦 Next.js Integration
|
|
44
|
+
|
|
45
|
+
- **[Next.js Guide](NEXTJS-GUIDE.md)** - Complete Next.js integration guide
|
|
46
|
+
- **[Next.js Quickstart](NEXTJS-QUICKSTART.md)** - Quick setup for Next.js
|
|
47
|
+
- **[Easiest Setup](EASIEST-SETUP.md)** - Simplest way to get started with Next.js
|
|
48
|
+
- **[Vercel OTel Migration](VERCEL-OTEL-MIGRATION.md)** - Migrating to @vercel/otel
|
|
49
|
+
- **[Next.js Webpack Warnings](NEXTJS-WEBPACK-WARNINGS.md)** - Fixing webpack bundling issues
|
|
50
|
+
|
|
51
|
+
### 🔍 Request Body Capture
|
|
52
|
+
|
|
53
|
+
- **[Request Body Capture](REQUEST-BODY-CAPTURE.md)** - Overview of body capture features
|
|
54
|
+
- **[Body Capture Quickstart](BODY-CAPTURE-QUICKSTART.md)** - Quick start for body capture
|
|
55
|
+
- **[Quickstart Body Capture](QUICKSTART-BODY-CAPTURE.md)** - Alternative quickstart
|
|
56
|
+
- **[Auto Body Capture](AUTO-BODY-CAPTURE.md)** - Automatic body capture for Next.js
|
|
57
|
+
- **[Body Capture Fix](BODY-CAPTURE-FIX.md)** - Troubleshooting body capture issues
|
|
58
|
+
- **[Final Solution](FINAL-SOLUTION.md)** - Complete body capture solution
|
|
59
|
+
|
|
60
|
+
### ⚙️ Configuration
|
|
61
|
+
|
|
62
|
+
- **[Environment Variables Complete Reference](ENVIRONMENT-VARIABLES.md)** - All variables explained
|
|
63
|
+
- Required variables
|
|
64
|
+
- Optional variables
|
|
65
|
+
- Configuration examples
|
|
66
|
+
- Best practices
|
|
67
|
+
- Priority and overrides
|
|
68
|
+
|
|
69
|
+
### 🔐 Next.js Body Capture
|
|
70
|
+
|
|
71
|
+
- **[Next.js Body Capture](NEXTJS-BODY-CAPTURE.md)** - Body capture specifically for Next.js
|
|
72
|
+
- **[Next.js Body Capture Comparison](NEXTJS-BODY-CAPTURE-COMPARISON.md)** - Compare different approaches
|
|
73
|
+
- **[Next.js Wrapper Approach](NEXTJS-WRAPPER-APPROACH.md)** - Using wrapper functions
|
|
74
|
+
|
|
75
|
+
### 🛡️ Security & Privacy
|
|
76
|
+
|
|
77
|
+
- **[Redaction Examples](REDACTION-EXAMPLES.md)** - How sensitive data is redacted
|
|
78
|
+
- **[Automatic IP Capture](AUTOMATIC-IP-CAPTURE.md)** - IP address and metadata collection
|
|
79
|
+
|
|
80
|
+
### 🖥️ Express.js & Node.js
|
|
81
|
+
|
|
82
|
+
- **[Express Body Capture](EXPRESS-BODY-CAPTURE.md)** - Body capture for Express.js with PM2
|
|
83
|
+
- Supports both JavaScript and TypeScript
|
|
84
|
+
- PM2 clustering setup
|
|
85
|
+
- Complete examples
|
|
86
|
+
|
|
87
|
+
### 📊 Architecture & Implementation
|
|
88
|
+
|
|
89
|
+
- **[Architecture](ARCHITECTURE.md)** - System architecture overview
|
|
90
|
+
- **[Implementation Summary](IMPLEMENTATION-SUMMARY.md)** - Implementation details
|
|
91
|
+
- **[Solution Summary](SOLUTION-SUMMARY.md)** - Summary of all solutions
|
|
92
|
+
- **[Completion Report](COMPLETION-REPORT.md)** - Project completion status
|
|
93
|
+
- **[Changelog - Next.js](CHANGELOG-NEXTJS.md)** - Next.js integration changelog
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 🎯 Quick Links by Use Case
|
|
98
|
+
|
|
99
|
+
### "I want to set up monitoring and logging for any framework"
|
|
100
|
+
1. Start with [NPM Package Documentation](../NPM_README.md)
|
|
101
|
+
2. Quick setup: [All Frameworks Quick Start](ALL-FRAMEWORKS-QUICKSTART.md)
|
|
102
|
+
3. Simple guide: [Consuming Apps Guide](../CONSUMING-APPS-GUIDE.md)
|
|
103
|
+
4. All variables: [Environment Variables Reference](ENVIRONMENT-VARIABLES.md)
|
|
104
|
+
|
|
105
|
+
### "I'm using Express.js"
|
|
106
|
+
1. Quick start: [All Frameworks Quick Start](ALL-FRAMEWORKS-QUICKSTART.md#expressjs)
|
|
107
|
+
2. Complete guide: [Express.js Setup Guide](EXPRESS-SETUP-GUIDE.md)
|
|
108
|
+
3. Includes PM2, Docker, TypeScript examples
|
|
109
|
+
|
|
110
|
+
### "I'm using Next.js"
|
|
111
|
+
1. Quick start: [All Frameworks Quick Start](ALL-FRAMEWORKS-QUICKSTART.md#nextjs-app-router)
|
|
112
|
+
2. Complete guide: [Next.js Setup Complete](NEXTJS-SETUP-COMPLETE.md)
|
|
113
|
+
3. Legacy guide: [Next.js Quickstart](NEXTJS-QUICKSTART.md)
|
|
114
|
+
|
|
115
|
+
### "I want to add logging to my app"
|
|
116
|
+
1. Start with [Logging Quick Start](LOGGING-QUICKSTART.md)
|
|
117
|
+
2. For complete guide: [Logging Complete Guide](LOGGING-GUIDE.md)
|
|
118
|
+
3. Works with Express, Next.js, Fastify, NestJS, and all Node.js frameworks
|
|
119
|
+
|
|
120
|
+
### "I want to capture request bodies in Next.js"
|
|
121
|
+
1. Read [Next.js Body Capture](NEXTJS-BODY-CAPTURE.md)
|
|
122
|
+
2. Choose approach: [Next.js Body Capture Comparison](NEXTJS-BODY-CAPTURE-COMPARISON.md)
|
|
123
|
+
3. Implement: [Auto Body Capture](AUTO-BODY-CAPTURE.md)
|
|
124
|
+
|
|
125
|
+
### "I want to use this with Express.js and PM2"
|
|
126
|
+
1. Read [Express Body Capture](EXPRESS-BODY-CAPTURE.md)
|
|
127
|
+
2. Check [Request Body Capture](REQUEST-BODY-CAPTURE.md) for general info
|
|
128
|
+
|
|
129
|
+
### "I need to capture IP addresses and headers"
|
|
130
|
+
1. Read [Automatic IP Capture](AUTOMATIC-IP-CAPTURE.md)
|
|
131
|
+
2. Understand redaction: [Redaction Examples](REDACTION-EXAMPLES.md)
|
|
132
|
+
|
|
133
|
+
### "I'm getting errors or warnings"
|
|
134
|
+
1. Webpack issues: [Next.js Webpack Warnings](NEXTJS-WEBPACK-WARNINGS.md)
|
|
135
|
+
2. Body capture issues: [Body Capture Fix](BODY-CAPTURE-FIX.md)
|
|
136
|
+
3. Check [Final Solution](FINAL-SOLUTION.md) for latest fixes
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## 📖 Documentation Overview
|
|
141
|
+
|
|
142
|
+
### NPM Package Documentation (Start Here)
|
|
143
|
+
- **NPM Package Documentation** - Complete reference for npm users
|
|
144
|
+
- **All Frameworks Quick Start** - Universal 5-minute setup
|
|
145
|
+
- **Consuming Apps Guide** - Simple step-by-step guide
|
|
146
|
+
- **Environment Variables Reference** - All configuration options
|
|
147
|
+
|
|
148
|
+
### Complete Framework Guides
|
|
149
|
+
- **Express.js Setup Guide** - Complete Express.js reference
|
|
150
|
+
- **Next.js Setup Complete** - Complete Next.js reference
|
|
151
|
+
- **Logging Complete Guide** - Complete logging reference
|
|
152
|
+
|
|
153
|
+
### Quick Start Guides
|
|
154
|
+
- **Logging Quick Start** - 2-minute logging setup
|
|
155
|
+
- **All Frameworks Quick Start** - 5-minute universal setup
|
|
156
|
+
- **Next.js Quickstart** - Legacy Next.js quick start
|
|
157
|
+
- **Body Capture Quickstart** - Quick body capture setup
|
|
158
|
+
|
|
159
|
+
### Technical Deep Dives
|
|
160
|
+
- Architecture
|
|
161
|
+
- Implementation Summary
|
|
162
|
+
- Vercel OTel Migration
|
|
163
|
+
|
|
164
|
+
### Problem Solving
|
|
165
|
+
- Body Capture Fix
|
|
166
|
+
- Next.js Webpack Warnings
|
|
167
|
+
- Redaction Examples
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 🔗 External Resources
|
|
172
|
+
|
|
173
|
+
- [Main README](../README.md) - Package overview
|
|
174
|
+
- [NPM README](../NPM_README.md) - NPM package documentation
|
|
175
|
+
- [Consuming Apps Guide](../CONSUMING-APPS-GUIDE.md) - Developer setup guide
|
|
176
|
+
- [Examples](../examples/) - Code examples
|
|
177
|
+
- [npm Package](https://www.npmjs.com/package/securenow)
|
|
178
|
+
- [OpenTelemetry Docs](https://opentelemetry.io/)
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## 💡 Need Help?
|
|
183
|
+
|
|
184
|
+
1. Check the relevant guide above
|
|
185
|
+
2. Look at [Examples](../examples/)
|
|
186
|
+
3. Review [Troubleshooting sections](BODY-CAPTURE-FIX.md)
|
|
187
|
+
4. Check [Architecture](ARCHITECTURE.md) for system design
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 📦 NPM Package Files
|
|
194
|
+
|
|
195
|
+
Key documentation files included in the npm package:
|
|
196
|
+
|
|
197
|
+
- `NPM_README.md` - Complete npm package documentation
|
|
198
|
+
- `CONSUMING-APPS-GUIDE.md` - Simple developer guide
|
|
199
|
+
- `README.md` - Package overview
|
|
200
|
+
- `docs/` - All guides and references
|
|
201
|
+
- `examples/` - Code examples
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
**Last Updated:** March 18, 2026
|
|
206
|
+
**Package Version:** 4.0.12+
|