service-bridge 1.0.9-dev.21 → 1.0.9-dev.22
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/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -574,7 +574,7 @@ function servicebridge(url, serviceKey, serviceOrOpts = {}, maybeGlobalOpts = {}
|
|
|
574
574
|
fn: op.fn,
|
|
575
575
|
service_name: service,
|
|
576
576
|
started_at: String(op.startedAt),
|
|
577
|
-
duration_ms: String(
|
|
577
|
+
duration_ms: String(op.durationMs),
|
|
578
578
|
success: op.success,
|
|
579
579
|
error: op.error ?? "",
|
|
580
580
|
input: op.inputBuf,
|
|
@@ -844,6 +844,7 @@ function servicebridge(url, serviceKey, serviceOrOpts = {}, maybeGlobalOpts = {}
|
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function reportCallAsync(traceId, spanId, fn, startedAt, inputBuf, success, attempt, outputBuf, error = "") {
|
|
847
|
+
const durationMs = computeDurationMs(startedAt);
|
|
847
848
|
if (!isOnline) {
|
|
848
849
|
enqueueOffline({
|
|
849
850
|
type: "reportCall",
|
|
@@ -851,6 +852,7 @@ function servicebridge(url, serviceKey, serviceOrOpts = {}, maybeGlobalOpts = {}
|
|
|
851
852
|
spanId,
|
|
852
853
|
fn,
|
|
853
854
|
startedAt,
|
|
855
|
+
durationMs,
|
|
854
856
|
inputBuf,
|
|
855
857
|
success,
|
|
856
858
|
attempt,
|
|
@@ -864,6 +866,7 @@ function servicebridge(url, serviceKey, serviceOrOpts = {}, maybeGlobalOpts = {}
|
|
|
864
866
|
spanId,
|
|
865
867
|
fn,
|
|
866
868
|
startedAt,
|
|
869
|
+
durationMs,
|
|
867
870
|
inputBuf,
|
|
868
871
|
success,
|
|
869
872
|
attempt,
|
|
@@ -879,6 +882,7 @@ function servicebridge(url, serviceKey, serviceOrOpts = {}, maybeGlobalOpts = {}
|
|
|
879
882
|
spanId,
|
|
880
883
|
fn,
|
|
881
884
|
startedAt,
|
|
885
|
+
durationMs,
|
|
882
886
|
inputBuf,
|
|
883
887
|
success,
|
|
884
888
|
attempt,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "service-bridge",
|
|
3
|
-
"version": "1.0.9-dev.
|
|
3
|
+
"version": "1.0.9-dev.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ServiceBridge SDK for Node.js — production-ready RPC, durable events, workflows, jobs, and distributed tracing. One Go runtime + PostgreSQL replaces Istio, RabbitMQ, Temporal, and Jaeger.",
|
|
6
6
|
"keywords": [
|