@poncho-ai/harness 0.20.2 → 0.20.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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/index.js +18 -0
- package/package.json +1 -1
- package/src/harness.ts +14 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/harness@0.20.
|
|
2
|
+
> @poncho-ai/harness@0.20.3 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m200.14 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 157ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 7386ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.36 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @poncho-ai/harness
|
|
2
2
|
|
|
3
|
+
## 0.20.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`28046fb`](https://github.com/cesr/poncho-ai/commit/28046fb39aea00968ac532c25db4f0d654e21876) Thanks [@cesr](https://github.com/cesr)! - Add diagnostic span processor to log telemetry span details for debugging trace export issues.
|
|
8
|
+
|
|
3
9
|
## 0.20.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -3490,6 +3490,24 @@ var AgentHarness = class {
|
|
|
3490
3490
|
DiagLogLevel.ERROR
|
|
3491
3491
|
);
|
|
3492
3492
|
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey, { disableBatch: true });
|
|
3493
|
+
const provider2 = this.latitudeTelemetry.nodeProvider;
|
|
3494
|
+
if (provider2?.addSpanProcessor) {
|
|
3495
|
+
provider2.addSpanProcessor({
|
|
3496
|
+
onStart() {
|
|
3497
|
+
},
|
|
3498
|
+
onEnd(span) {
|
|
3499
|
+
console.info(
|
|
3500
|
+
`[poncho][otel-diag] span ended: name="${span.name}" traceId=${span.spanContext().traceId} parent=${span.parentSpanId ?? "none"}`
|
|
3501
|
+
);
|
|
3502
|
+
},
|
|
3503
|
+
forceFlush() {
|
|
3504
|
+
return Promise.resolve();
|
|
3505
|
+
},
|
|
3506
|
+
shutdown() {
|
|
3507
|
+
return Promise.resolve();
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
}
|
|
3493
3511
|
} else if (telemetryEnabled && latitudeBlock && (!latitudeApiKey || !latitudeProjectId)) {
|
|
3494
3512
|
const missing = [];
|
|
3495
3513
|
if (!latitudeApiKey) missing.push(`${latApiKeyEnv} env var`);
|
package/package.json
CHANGED
package/src/harness.ts
CHANGED
|
@@ -929,6 +929,20 @@ export class AgentHarness {
|
|
|
929
929
|
DiagLogLevel.ERROR,
|
|
930
930
|
);
|
|
931
931
|
this.latitudeTelemetry = new LatitudeTelemetry(latitudeApiKey, { disableBatch: true });
|
|
932
|
+
// Diagnostic: log every span that passes through the pipeline
|
|
933
|
+
const provider = (this.latitudeTelemetry as unknown as { nodeProvider: { addSpanProcessor(p: unknown): void } }).nodeProvider;
|
|
934
|
+
if (provider?.addSpanProcessor) {
|
|
935
|
+
provider.addSpanProcessor({
|
|
936
|
+
onStart() {},
|
|
937
|
+
onEnd(span: { name: string; spanContext(): { traceId: string }; parentSpanId?: string }) {
|
|
938
|
+
console.info(
|
|
939
|
+
`[poncho][otel-diag] span ended: name="${span.name}" traceId=${span.spanContext().traceId} parent=${span.parentSpanId ?? "none"}`,
|
|
940
|
+
);
|
|
941
|
+
},
|
|
942
|
+
forceFlush() { return Promise.resolve(); },
|
|
943
|
+
shutdown() { return Promise.resolve(); },
|
|
944
|
+
});
|
|
945
|
+
}
|
|
932
946
|
} else if (telemetryEnabled && latitudeBlock && (!latitudeApiKey || !latitudeProjectId)) {
|
|
933
947
|
const missing: string[] = [];
|
|
934
948
|
if (!latitudeApiKey) missing.push(`${latApiKeyEnv} env var`);
|