@centeredgesoft/runtime-mock-routes 2.11.1 → 2.11.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/build/run.js +3 -1
- package/package.json +3 -3
- package/run.ts +3 -1
package/build/run.js
CHANGED
|
@@ -7,7 +7,9 @@ const instrumentation_http_1 = require("@opentelemetry/instrumentation-http");
|
|
|
7
7
|
let logRecordProcessors = undefined;
|
|
8
8
|
if (!process.env.OTEL_EXPORTER_OTLP_ENDPOINT) {
|
|
9
9
|
// OTLP isn't configured, fallback to console logging
|
|
10
|
-
logRecordProcessors = [
|
|
10
|
+
logRecordProcessors = [
|
|
11
|
+
new sdk_node_1.logs.SimpleLogRecordProcessor({ exporter: new sdk_node_1.logs.ConsoleLogRecordExporter() })
|
|
12
|
+
];
|
|
11
13
|
}
|
|
12
14
|
const sdk = new sdk_node_1.NodeSDK({
|
|
13
15
|
logRecordProcessors: logRecordProcessors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@centeredgesoft/runtime-mock-routes",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"homepage": "https://github.com/CenterEdge/runtime-mock-routes#readme",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@opentelemetry/instrumentation-express": "^0.57.0",
|
|
29
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
30
|
-
"@opentelemetry/sdk-node": "^0.
|
|
29
|
+
"@opentelemetry/instrumentation-http": "^0.220.0",
|
|
30
|
+
"@opentelemetry/sdk-node": "^0.220.0",
|
|
31
31
|
"chance": "^1.1.7",
|
|
32
32
|
"commander": "^6.2.1",
|
|
33
33
|
"cors": "^2.8.5",
|
package/run.ts
CHANGED
|
@@ -6,7 +6,9 @@ import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
|
|
|
6
6
|
let logRecordProcessors: logs.LogRecordProcessor[] | undefined = undefined;
|
|
7
7
|
if (!process.env.OTEL_EXPORTER_OTLP_ENDPOINT) {
|
|
8
8
|
// OTLP isn't configured, fallback to console logging
|
|
9
|
-
logRecordProcessors = [
|
|
9
|
+
logRecordProcessors = [
|
|
10
|
+
new logs.SimpleLogRecordProcessor({ exporter: new logs.ConsoleLogRecordExporter() })
|
|
11
|
+
];
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
const sdk = new NodeSDK({
|