@moreapp/common-nodejs 0.12.6 → 0.12.7
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.
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import * as types from "@opentelemetry/instrumentation/build/src/types";
|
|
2
|
+
export declare const start: (serviceName: string, { http, extraInstrumentations, debug, }: {
|
|
3
|
+
http?: {
|
|
4
|
+
portsToInstrument: number[];
|
|
5
|
+
};
|
|
6
|
+
extraInstrumentations?: types.Instrumentation[];
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
export declare const shutdown: () => Promise<void>;
|
|
2
10
|
declare const _default: {
|
|
3
11
|
start: (serviceName: string, { http, extraInstrumentations, debug, }: {
|
|
4
12
|
http?: {
|
|
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.shutdown = exports.start = void 0;
|
|
36
37
|
const api_1 = require("@opentelemetry/api");
|
|
37
38
|
const sdk_trace_node_1 = require("@opentelemetry/sdk-trace-node");
|
|
38
39
|
const instrumentation_1 = require("@opentelemetry/instrumentation");
|
|
@@ -85,6 +86,7 @@ const start = (serviceName, { http = {
|
|
|
85
86
|
],
|
|
86
87
|
});
|
|
87
88
|
};
|
|
89
|
+
exports.start = start;
|
|
88
90
|
const shutdown = async () => {
|
|
89
91
|
if (!(0, lodash_1.isNil)(provider)) {
|
|
90
92
|
const { logger } = await Promise.resolve().then(() => __importStar(require("../logger")));
|
|
@@ -92,4 +94,5 @@ const shutdown = async () => {
|
|
|
92
94
|
await provider.shutdown();
|
|
93
95
|
}
|
|
94
96
|
};
|
|
95
|
-
exports.
|
|
97
|
+
exports.shutdown = shutdown;
|
|
98
|
+
exports.default = { start: exports.start, shutdown: exports.shutdown };
|