@alineo-labs/otel 0.1.2 → 0.1.4
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.mts +3 -5
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Tracer } from "@opentelemetry/api";
|
|
2
2
|
import { SandboxHooks } from "@alineo-labs/core";
|
|
3
|
-
|
|
4
3
|
//#region src/index.d.ts
|
|
5
|
-
interface OtelHooksOptions {
|
|
4
|
+
export interface OtelHooksOptions {
|
|
6
5
|
/** Include exit code as a span attribute on exec spans. Default: true. */
|
|
7
6
|
recordExitCode?: boolean;
|
|
8
7
|
}
|
|
@@ -27,6 +26,5 @@ interface OtelHooksOptions {
|
|
|
27
26
|
* const sb = await client.sandbox({ image: "node:22", resources: { cpu: "500m", memory: "256Mi" }, hooks: otelHooks(tracer) });
|
|
28
27
|
* ```
|
|
29
28
|
*/
|
|
30
|
-
declare function otelHooks(tracer: Tracer, opts?: OtelHooksOptions): SandboxHooks;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { OtelHooksOptions, otelHooks };
|
|
29
|
+
export declare function otelHooks(tracer: Tracer, opts?: OtelHooksOptions): SandboxHooks;
|
|
30
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alineo-labs/otel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"build": "tsdown"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alineo-labs/core": "0.
|
|
30
|
+
"@alineo-labs/core": "0.4.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@opentelemetry/api": "1.9.1",
|
|
34
|
-
"bun-types": "1.
|
|
35
|
-
"tsdown": "0.
|
|
34
|
+
"bun-types": "1.4.2",
|
|
35
|
+
"tsdown": "0.23.0",
|
|
36
36
|
"typescript": "6.0.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|