securenow 1.0.6 → 1.0.8
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 +6 -0
- package/package.json +1 -1
- package/tracing.js +3 -2
package/README.md
CHANGED
|
@@ -13,4 +13,10 @@ npm i --save securenow
|
|
|
13
13
|
set the api key in your environement variable :
|
|
14
14
|
```bash
|
|
15
15
|
export securenow=<API-KEY>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
if you have a dedicated securenow instance :
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
export securenow_instance='http://<dedicated_instance>:4318'
|
|
16
22
|
```
|
package/package.json
CHANGED
package/tracing.js
CHANGED
|
@@ -8,13 +8,14 @@ const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http')
|
|
|
8
8
|
const { ExpressInstrumentation } = require("@opentelemetry/instrumentation-express");
|
|
9
9
|
const { MongoDBInstrumentation } = require("@opentelemetry/instrumentation-mongodb");
|
|
10
10
|
const { HttpInstrumentation } = require("@opentelemetry/instrumentation-http");
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
const { v4: uuidv4 } = require('uuid');
|
|
13
13
|
const { Resource } = require('@opentelemetry/resources');
|
|
14
14
|
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
|
|
15
15
|
|
|
16
|
+
const securenow_instance = process.env.securenow_url || 'http://65.108.80.206:4318';
|
|
16
17
|
const exporterOptions = {
|
|
17
|
-
url: '
|
|
18
|
+
url: securenow_instance+'/v1/traces'
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
const traceExporter = new OTLPTraceExporter(exporterOptions);
|