@osfactory/otel-hook 0.1.1 → 0.1.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/cli.js +55 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +37 -9
- package/dist/index.js.map +1 -1
- package/dist/install.js +6 -1
- package/dist/install.js.map +1 -1
- package/dist/integration.js +7 -2
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.js +1 -1
- package/dist/lifecycle.js.map +1 -1
- package/dist/providers.js +36 -8
- package/dist/providers.js.map +1 -1
- package/dist/runtime.js +6 -1
- package/dist/runtime.js.map +1 -1
- package/dist/telemetry.js +1 -1
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.js +36 -8
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/integration.js
CHANGED
|
@@ -693,7 +693,7 @@ import {
|
|
|
693
693
|
} from "@opentelemetry/semantic-conventions/incubating";
|
|
694
694
|
|
|
695
695
|
// src/version.ts
|
|
696
|
-
var VERSION = "0.1.
|
|
696
|
+
var VERSION = "0.1.3";
|
|
697
697
|
|
|
698
698
|
// src/telemetry/semconv.ts
|
|
699
699
|
var SCOPE_NAME = "@osfactory/otel-hook";
|
|
@@ -3095,6 +3095,7 @@ var createProviderRegistry = (adapters) => {
|
|
|
3095
3095
|
errors
|
|
3096
3096
|
};
|
|
3097
3097
|
}
|
|
3098
|
+
const nearMisses = [];
|
|
3098
3099
|
for (const adapter of frozen) {
|
|
3099
3100
|
let detection;
|
|
3100
3101
|
try {
|
|
@@ -3104,6 +3105,10 @@ var createProviderRegistry = (adapters) => {
|
|
|
3104
3105
|
continue;
|
|
3105
3106
|
}
|
|
3106
3107
|
if (detection.confidence === "none") {
|
|
3108
|
+
for (const reason of detection.reasons) {
|
|
3109
|
+
const prefixed = `${adapter.id}: ${reason}`;
|
|
3110
|
+
nearMisses.push(prefixed.length <= 160 ? prefixed : `${prefixed.slice(0, 159)}\u2026`);
|
|
3111
|
+
}
|
|
3107
3112
|
continue;
|
|
3108
3113
|
}
|
|
3109
3114
|
if (detection.providerId !== adapter.id) {
|
|
@@ -3123,7 +3128,7 @@ var createProviderRegistry = (adapters) => {
|
|
|
3123
3128
|
return {
|
|
3124
3129
|
status: "unknown",
|
|
3125
3130
|
reason: "no-candidates",
|
|
3126
|
-
detection: unknownDetection(),
|
|
3131
|
+
detection: unknownDetection(nearMisses.length === 0 ? void 0 : nearMisses.slice(0, 8)),
|
|
3127
3132
|
candidates,
|
|
3128
3133
|
errors
|
|
3129
3134
|
};
|