@semiont/observability 0.5.3 → 0.5.5
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.d.ts +2 -1
- package/dist/node.d.ts +2 -1
- package/dist/web.d.ts +2 -1
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -140,4 +140,5 @@ declare function recordInferenceUsage(opts: {
|
|
|
140
140
|
outputTokens?: number;
|
|
141
141
|
}): void;
|
|
142
142
|
|
|
143
|
-
export {
|
|
143
|
+
export { extractTraceparent, getActiveTraceparent, getLogTraceContext, injectTraceparent, recordBusEmit, recordHandlerDuration, recordInferenceUsage, recordJobOutcome, recordSubscriberConnect, recordSubscriberDisconnect, registerJobQueueProvider, registerVectorIndexSizeProvider, withActorSpan, withSpan, withTraceparent };
|
|
144
|
+
export type { JobQueueSnapshot, TraceCarrier };
|
package/dist/node.d.ts
CHANGED
|
@@ -43,4 +43,5 @@ declare function initObservabilityNode(config: NodeObservabilityConfig): boolean
|
|
|
43
43
|
/** Force-flush + shutdown both SDKs. Test cleanup, not production. */
|
|
44
44
|
declare function shutdownObservabilityNode(): Promise<void>;
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { initObservabilityNode, shutdownObservabilityNode };
|
|
47
|
+
export type { NodeObservabilityConfig };
|
package/dist/web.d.ts
CHANGED
|
@@ -34,4 +34,5 @@ interface WebObservabilityConfig {
|
|
|
34
34
|
*/
|
|
35
35
|
declare function initObservabilityWeb(config: WebObservabilityConfig): boolean;
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { initObservabilityWeb };
|
|
38
|
+
export type { WebObservabilityConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semiont/observability",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "OpenTelemetry-based tracing for Semiont — Tier 2 of OBSERVABILITY.md. Process-init helpers (Node + Web), withSpan helper, W3C traceparent inject/extract for bus payloads. No-op when no exporter is configured.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"pretypecheck": "npm run build --workspace=@semiont/core --if-present",
|
|
48
48
|
"typecheck": "tsc --noEmit",
|
|
49
|
-
"build": "npm run typecheck && tsup",
|
|
49
|
+
"build": "npm run typecheck && tsup && tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs && rm -rf dist-types",
|
|
50
50
|
"watch": "tsup --watch",
|
|
51
51
|
"clean": "rm -rf dist *.tsbuildinfo",
|
|
52
52
|
"test": "vitest run",
|
|
@@ -55,8 +55,10 @@
|
|
|
55
55
|
"author": "Semiont Team",
|
|
56
56
|
"license": "Apache-2.0",
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"rollup": "^4.60.3",
|
|
59
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
58
60
|
"tsup": "^8.5.1",
|
|
59
|
-
"typescript": "^
|
|
61
|
+
"typescript": "^6.0.2",
|
|
60
62
|
"vitest": "^4.1.0"
|
|
61
63
|
},
|
|
62
64
|
"dependencies": {
|