@routr/dispatcher 2.15.1 → 2.15.3
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/dist/tracer.d.ts +1 -7
- package/dist/tracer.js +4 -32
- package/package.json +6 -13
package/dist/tracer.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* This function registers the instrumentations for the service.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} serviceName - The name of the service.
|
|
5
|
-
* @return {Tracer} The tracer object.
|
|
6
|
-
*/
|
|
7
|
-
export declare function init(serviceName: string): import("@opentelemetry/api").Tracer;
|
|
1
|
+
export { init } from "@routr/common/dist/tracer";
|
package/dist/tracer.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.init =
|
|
3
|
+
exports.init = void 0;
|
|
7
4
|
/*
|
|
8
5
|
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
9
6
|
* http://github.com/fonoster/routr
|
|
@@ -22,31 +19,6 @@ exports.init = init;
|
|
|
22
19
|
* See the License for the specific language governing permissions and
|
|
23
20
|
* limitations under the License.
|
|
24
21
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const resources_1 = require("@opentelemetry/resources");
|
|
29
|
-
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
|
|
30
|
-
const sdk_trace_base_1 = require("@opentelemetry/sdk-trace-base");
|
|
31
|
-
const exporter_jaeger_1 = require("@opentelemetry/exporter-jaeger");
|
|
32
|
-
const instrumentation_grpc_1 = require("@opentelemetry/instrumentation-grpc");
|
|
33
|
-
/**
|
|
34
|
-
* This function registers the instrumentations for the service.
|
|
35
|
-
*
|
|
36
|
-
* @param {string} serviceName - The name of the service.
|
|
37
|
-
* @return {Tracer} The tracer object.
|
|
38
|
-
*/
|
|
39
|
-
function init(serviceName) {
|
|
40
|
-
const provider = new sdk_trace_node_1.NodeTracerProvider({
|
|
41
|
-
resource: new resources_1.Resource({
|
|
42
|
-
[semantic_conventions_1.SemanticResourceAttributes.SERVICE_NAME]: serviceName
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
const exporter = new exporter_jaeger_1.JaegerExporter();
|
|
46
|
-
provider.addSpanProcessor(new sdk_trace_base_1.SimpleSpanProcessor(exporter));
|
|
47
|
-
provider.register();
|
|
48
|
-
(0, instrumentation_1.registerInstrumentations)({
|
|
49
|
-
instrumentations: [new instrumentation_grpc_1.GrpcInstrumentation()]
|
|
50
|
-
});
|
|
51
|
-
return api_1.default.trace.getTracer("routr-tracer");
|
|
52
|
-
}
|
|
22
|
+
// The shared tracer, imported on its own so @grpc/grpc-js is not loaded before it.
|
|
23
|
+
var tracer_1 = require("@routr/common/dist/tracer");
|
|
24
|
+
Object.defineProperty(exports, "init", { enumerable: true, get: function () { return tracer_1.init; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/dispatcher",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.3",
|
|
4
4
|
"description": "Receives SIP messages and forwards them to the corresponding Message Processor",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -26,17 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@fonoster/logger": "0.6.0",
|
|
29
|
-
"@grpc/grpc-js": "~1.
|
|
30
|
-
"@opentelemetry/api": "^1.0
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@opentelemetry/instrumentation-grpc": "^0.27.0",
|
|
34
|
-
"@opentelemetry/resources": "^1.0.4",
|
|
35
|
-
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
36
|
-
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
37
|
-
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
38
|
-
"@routr/common": "^2.15.0",
|
|
39
|
-
"@routr/processor": "^2.15.1",
|
|
29
|
+
"@grpc/grpc-js": "~1.14.6",
|
|
30
|
+
"@opentelemetry/api": "^1.9.0",
|
|
31
|
+
"@routr/common": "^2.15.3",
|
|
32
|
+
"@routr/processor": "^2.15.3",
|
|
40
33
|
"ajv": "^6.12.6",
|
|
41
34
|
"fp-ts": "^2.11.8"
|
|
42
35
|
},
|
|
@@ -47,5 +40,5 @@
|
|
|
47
40
|
"bugs": {
|
|
48
41
|
"url": "https://github.com/fonoster/routr/issues"
|
|
49
42
|
},
|
|
50
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5f7482571c533878543c74a4e284d569f1ce0c3d"
|
|
51
44
|
}
|