@fabric-harness/sdk 0.1.0 → 0.1.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/README.md +4 -4
- package/dist/otel.d.ts +1 -1
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +6 -2
- package/dist/otel.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,10 +63,10 @@ Both modes share the same runtime, the same `init()`, the same `session.prompt()
|
|
|
63
63
|
|
|
64
64
|
## Documentation
|
|
65
65
|
|
|
66
|
-
- [Headless mode](https://
|
|
67
|
-
- [Runtime modes](https://
|
|
68
|
-
- [Filesystem sources](https://
|
|
69
|
-
- [Full reference](https://
|
|
66
|
+
- [Headless mode](https://harness.fabric.pro/docs/getting-started/headless-mode)
|
|
67
|
+
- [Runtime modes](https://harness.fabric.pro/docs/reference/runtime-modes)
|
|
68
|
+
- [Filesystem sources](https://harness.fabric.pro/docs/reference/filesystem-sources)
|
|
69
|
+
- [Full reference](https://harness.fabric.pro/docs)
|
|
70
70
|
|
|
71
71
|
## License
|
|
72
72
|
|
package/dist/otel.d.ts
CHANGED
package/dist/otel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQvE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACxD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,iBAAiB,CAM9F;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAM,GAAG,IAAI,CAQ3I"}
|
package/dist/otel.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// Inline the SpanStatusCode.OK numeric value (per the OpenTelemetry spec)
|
|
2
|
+
// so that consumers without `@opentelemetry/api` installed can still load
|
|
3
|
+
// this module. The full `@opentelemetry/api` package is an optional peer
|
|
4
|
+
// dependency — only required if you actually wire up `openTelemetryExporter`.
|
|
5
|
+
const SPAN_STATUS_OK = 1;
|
|
2
6
|
/**
|
|
3
7
|
* Bridge Fabric's SDK-neutral TelemetrySpan into a real @opentelemetry/api Tracer.
|
|
4
8
|
*
|
|
@@ -18,7 +22,7 @@ export function emitOpenTelemetrySpan(tracer, span, attributes = {}) {
|
|
|
18
22
|
startTime: new Date(span.startedAt),
|
|
19
23
|
attributes: { ...attributes, ...span.attributes, 'fabric.duration_ms': span.durationMs },
|
|
20
24
|
});
|
|
21
|
-
otelSpan.setStatus({ code:
|
|
25
|
+
otelSpan.setStatus({ code: SPAN_STATUS_OK });
|
|
22
26
|
otelSpan.end(new Date(span.endedAt));
|
|
23
27
|
return otelSpan;
|
|
24
28
|
}
|
package/dist/otel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel.js","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"otel.js","sourceRoot":"","sources":["../src/otel.ts"],"names":[],"mappings":"AAGA,0EAA0E;AAC1E,0EAA0E;AAC1E,yEAAyE;AACzE,8EAA8E;AAC9E,MAAM,cAAc,GAAG,CAAU,CAAC;AAQlC;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAqC;IACzE,OAAO;QACL,MAAM,CAAC,IAAI;YACT,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QAClE,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAc,EAAE,IAAmB,EAAE,aAAwD,EAAE;IACnI,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE;QAC3C,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;QACnC,UAAU,EAAE,EAAE,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,oBAAoB,EAAE,IAAI,CAAC,UAAU,EAAE;KACzF,CAAC,CAAC;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACrC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED