@dagger.io/dagger 0.11.6 → 0.11.7
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/entrypoint/entrypoint.d.ts.map +1 -1
- package/dist/entrypoint/entrypoint.js +6 -15
- package/dist/provisioning/default.d.ts +1 -1
- package/dist/provisioning/default.js +1 -1
- package/dist/telemetry/attributes.d.ts +0 -8
- package/dist/telemetry/attributes.d.ts.map +1 -1
- package/dist/telemetry/attributes.js +0 -8
- package/dist/telemetry/init.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../entrypoint/entrypoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../entrypoint/entrypoint.ts"],"names":[],"mappings":"AAiBA,wBAAsB,UAAU,kBAgE/B"}
|
|
@@ -4,8 +4,6 @@ import { dag } from "../api/client.gen.js";
|
|
|
4
4
|
import { connection } from "../connect.js";
|
|
5
5
|
import { scan } from "../introspector/scanner/scan.js";
|
|
6
6
|
import { listFiles } from "../introspector/utils/files.js";
|
|
7
|
-
import { UI_MASK, UI_PASSTHROUGH } from "../telemetry/attributes.js";
|
|
8
|
-
import { getTracer } from "../telemetry/index.js";
|
|
9
7
|
import { invoke } from "./invoke.js";
|
|
10
8
|
import { load } from "./load.js";
|
|
11
9
|
import { register } from "./register.js";
|
|
@@ -26,9 +24,7 @@ export async function entrypoint() {
|
|
|
26
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
25
|
let result;
|
|
28
26
|
if (parentName === "") {
|
|
29
|
-
result = await
|
|
30
|
-
return await register(files, scanResult);
|
|
31
|
-
}, { [UI_MASK]: true });
|
|
27
|
+
result = await register(files, scanResult);
|
|
32
28
|
}
|
|
33
29
|
else {
|
|
34
30
|
// Invocation
|
|
@@ -42,16 +38,11 @@ export async function entrypoint() {
|
|
|
42
38
|
}
|
|
43
39
|
await load(files);
|
|
44
40
|
try {
|
|
45
|
-
result = await
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
fnArgs: args,
|
|
51
|
-
});
|
|
52
|
-
}, {
|
|
53
|
-
[UI_MASK]: true,
|
|
54
|
-
[UI_PASSTHROUGH]: true,
|
|
41
|
+
result = await invoke(scanResult, {
|
|
42
|
+
parentName,
|
|
43
|
+
fnName,
|
|
44
|
+
parentArgs,
|
|
45
|
+
fnArgs: args,
|
|
55
46
|
});
|
|
56
47
|
}
|
|
57
48
|
catch (e) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.11.
|
|
1
|
+
export declare const CLI_VERSION = "0.11.7";
|
|
2
2
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Code generated by dagger. DO NOT EDIT.
|
|
2
|
-
export const CLI_VERSION = "0.11.
|
|
2
|
+
export const CLI_VERSION = "0.11.7";
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Replace parent span (e.g., `exec /runtime`).
|
|
3
|
-
*/
|
|
4
|
-
export declare const UI_MASK = "dagger.io/ui.mask";
|
|
5
|
-
/**
|
|
6
|
-
* Reveal only child spans (e.g., `typescript runtime execution` parent span).
|
|
7
|
-
*/
|
|
8
|
-
export declare const UI_PASSTHROUGH = "dagger.io/ui.passthrough";
|
|
9
1
|
/**
|
|
10
2
|
* Hide children by default (e.g., test case that runs pipelines).
|
|
11
3
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../telemetry/attributes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../telemetry/attributes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,6BAA6B,CAAA"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Replace parent span (e.g., `exec /runtime`).
|
|
3
|
-
*/
|
|
4
|
-
export const UI_MASK = "dagger.io/ui.mask";
|
|
5
|
-
/**
|
|
6
|
-
* Reveal only child spans (e.g., `typescript runtime execution` parent span).
|
|
7
|
-
*/
|
|
8
|
-
export const UI_PASSTHROUGH = "dagger.io/ui.passthrough";
|
|
9
1
|
/**
|
|
10
2
|
* Hide children by default (e.g., test case that runs pipelines).
|
|
11
3
|
*/
|
package/dist/telemetry/init.js
CHANGED
|
@@ -3,7 +3,7 @@ import { NodeSDK } from "@opentelemetry/sdk-node";
|
|
|
3
3
|
const SERVICE_NAME = "dagger-typescript-sdk";
|
|
4
4
|
const env = getEnvWithoutDefaults();
|
|
5
5
|
/*
|
|
6
|
-
* Look for variables prefixed with
|
|
6
|
+
* Look for variables prefixed with OTel to see if OpenTelemetry is configured.
|
|
7
7
|
*/
|
|
8
8
|
function otelConfigured() {
|
|
9
9
|
return Object.keys(process.env).some((key) => key.startsWith("OTEL_"));
|