@kabran-tecnologia/kabran-config 1.6.0 → 1.7.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.
@@ -0,0 +1,118 @@
1
+ # =============================================================================
2
+ # Kabran Telemetry Configuration
3
+ # =============================================================================
4
+ # All variables are optional. Defaults are shown in comments.
5
+ # Copy this file to your project and rename to .env or .env.local
6
+ #
7
+ # Documentation: https://github.com/kabran-owner/kabran-config#telemetry
8
+
9
+ # =============================================================================
10
+ # Core Configuration
11
+ # =============================================================================
12
+
13
+ # Enable/disable telemetry (default: true in production, false otherwise)
14
+ # OTEL_ENABLED=true
15
+
16
+ # Service name (REQUIRED for telemetry to work)
17
+ # SERVICE_NAME=my-service
18
+
19
+ # Service version (default: 1.0.0)
20
+ # SERVICE_VERSION=1.0.0
21
+
22
+ # Environment name (default: from NODE_ENV)
23
+ # ENVIRONMENT=production
24
+
25
+ # Service namespace for grouping (default: kabran)
26
+ # OTEL_NAMESPACE=kabran
27
+ # SERVICE_NAMESPACE=kabran
28
+
29
+ # =============================================================================
30
+ # OTLP Exporter Configuration
31
+ # =============================================================================
32
+
33
+ # OTLP collector endpoint (default: https://otel.kabran.com.br)
34
+ # OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.kabran.com.br
35
+ # OTEL_ENDPOINT=https://otel.kabran.com.br
36
+
37
+ # Traces endpoint path (default: /v1/traces)
38
+ # OTEL_EXPORTER_OTLP_TRACES_PATH=/v1/traces
39
+
40
+ # Export timeout in milliseconds
41
+ # Node.js (default: 10000)
42
+ # OTEL_EXPORTER_OTLP_TIMEOUT=10000
43
+ # Edge/Serverless (default: 5000)
44
+ # OTEL_EXPORTER_OTLP_TIMEOUT_EDGE=5000
45
+
46
+ # Sampling rate 0.0-1.0 (default: 0.1 = 10%)
47
+ # OTEL_SAMPLE_RATE=0.1
48
+
49
+ # =============================================================================
50
+ # BatchSpanProcessor - Node.js
51
+ # =============================================================================
52
+ # Used for long-running processes (servers, workers)
53
+
54
+ # Maximum spans in queue before dropping (default: 2048)
55
+ # OTEL_BSP_MAX_QUEUE_SIZE=2048
56
+
57
+ # Maximum spans per export batch (default: 512)
58
+ # OTEL_BSP_MAX_EXPORT_BATCH_SIZE=512
59
+
60
+ # Delay between exports in milliseconds (default: 5000)
61
+ # OTEL_BSP_SCHEDULE_DELAY=5000
62
+
63
+ # =============================================================================
64
+ # BatchSpanProcessor - Frontend
65
+ # =============================================================================
66
+ # Optimized for browser environments (smaller batches, faster flush)
67
+
68
+ # Maximum spans in queue (default: 100)
69
+ # OTEL_BSP_MAX_QUEUE_SIZE_FRONTEND=100
70
+
71
+ # Maximum spans per export batch (default: 10)
72
+ # OTEL_BSP_MAX_EXPORT_BATCH_SIZE_FRONTEND=10
73
+
74
+ # Delay between exports in milliseconds (default: 500)
75
+ # OTEL_BSP_SCHEDULE_DELAY_FRONTEND=500
76
+
77
+ # =============================================================================
78
+ # Frontend Instrumentation
79
+ # =============================================================================
80
+
81
+ # CORS URLs for trace header propagation (comma-separated regex patterns)
82
+ # Default: .*\.supabase\.co,.*\.kabran\.com\.br,localhost
83
+ # OTEL_PROPAGATE_TRACE_HEADER_CORS_URLS=.*\.supabase\.co,.*\.kabran\.com\.br,localhost
84
+
85
+ # User interaction events to trace (comma-separated)
86
+ # Default: click,submit
87
+ # OTEL_USER_INTERACTION_EVENTS=click,submit
88
+
89
+ # =============================================================================
90
+ # Middleware Configuration (Node.js)
91
+ # =============================================================================
92
+
93
+ # Paths to ignore in telemetry middleware (comma-separated)
94
+ # Default: /health,/ready,/metrics
95
+ # OTEL_IGNORE_PATHS=/health,/ready,/metrics
96
+
97
+ # =============================================================================
98
+ # Error Response Configuration (Edge)
99
+ # =============================================================================
100
+
101
+ # Error message for unhandled errors (default: Internal server error)
102
+ # OTEL_ERROR_MESSAGE=Internal server error
103
+
104
+ # Error code for unhandled errors (default: INTERNAL_ERROR)
105
+ # OTEL_ERROR_CODE=INTERNAL_ERROR
106
+
107
+ # =============================================================================
108
+ # Logger Configuration
109
+ # =============================================================================
110
+
111
+ # Trace ID display length in logs (default: 8)
112
+ # OTEL_LOG_TRACE_ID_LENGTH=8
113
+
114
+ # Disable ANSI colors in logs (set to any value to disable)
115
+ # NO_COLOR=1
116
+
117
+ # Force enable/disable colors (overrides NO_COLOR)
118
+ # FORCE_COLOR=true