securenow 2.0.0 → 2.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/tracing.js +1 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "securenow",
3
- "version": "2.0.0",
4
- "description": "Plug&Secure for nodejs apps",
3
+ "version": "2.0.2",
4
+ "description": "Securenow for nodejs apps",
5
5
  "main": "tracing.js",
6
6
  "dependencies": {
7
7
  "@opentelemetry/auto-instrumentations-node": "^0.40.3",
package/tracing.js CHANGED
@@ -7,14 +7,13 @@ const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http')
7
7
  //instrumentations
8
8
  const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
9
9
  const { ExpressInstrumentation } = require("@opentelemetry/instrumentation-express");
10
- const { MongoDBInstrumentation } = require("@opentelemetry/instrumentation-mongodb");
11
10
  const { HttpInstrumentation } = require("@opentelemetry/instrumentation-http");
12
11
 
13
12
  const { v4: uuidv4 } = require('uuid');
14
13
  const { Resource } = require('@opentelemetry/resources');
15
14
  const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
16
15
 
17
- const securenow_instance = process.env.securenow_instance|| 'http://65.108.80.206:4318';
16
+ const securenow_instance = process.env.securenow_instance|| 'http://37.27.39.173:4318';
18
17
  const exporterOptions = {
19
18
  url: securenow_instance+'/v1/traces'
20
19
  }
@@ -45,9 +44,6 @@ const sdk = new opentelemetry.NodeSDK({
45
44
  '@opentelemetry/instrumentation-graphql': {
46
45
  enabled: true,
47
46
  },
48
- '@opentelemetry/instrumentation-mongodb': {
49
- enabled: true,
50
- },
51
47
  // Add more framework instrumentations
52
48
  '@opentelemetry/instrumentation-koa': {
53
49
  enabled: true,
@@ -76,7 +72,6 @@ const sdk = new opentelemetry.NodeSDK({
76
72
  }),
77
73
  // Add specific instrumentations that might not be covered by auto-instrumentation
78
74
  new ExpressInstrumentation(),
79
- new MongoDBInstrumentation(),
80
75
  new HttpInstrumentation(),
81
76
  ],
82
77
  resource: new Resource({