@spunto/build 0.14.0 → 0.15.0
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/package.json +1 -1
- package/src/script/setup-script.ts +13 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spunto/build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Spunto's shared Build engine — the devcontainer image protocol and VS Code extension registry clients, with no database, no HTTP framework and no UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -103,6 +103,16 @@ type CloneRepo = {
|
|
|
103
103
|
branch?: string
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
/**
|
|
107
|
+
* How a feature's entrypoint is started: without the OpenTelemetry variables the platform gives the
|
|
108
|
+
* workload. An entrypoint is infrastructure — dockerd, containerd — and Docker instruments itself as
|
|
109
|
+
* soon as `OTEL_EXPORTER_OTLP_ENDPOINT` exists: every internal gRPC call of a docker-in-docker
|
|
110
|
+
* daemon became a span (~60 000 per quarter hour for three sandboxes, 2026-10-18), drowning the
|
|
111
|
+
* project's own services in its organization's telemetry. The project's processes keep them.
|
|
112
|
+
*/
|
|
113
|
+
export const ENTRYPOINT_WITHOUT_OTEL =
|
|
114
|
+
"env -u OTEL_EXPORTER_OTLP_ENDPOINT -u OTEL_EXPORTER_OTLP_TRACES_ENDPOINT -u OTEL_EXPORTER_OTLP_METRICS_ENDPOINT -u OTEL_EXPORTER_OTLP_LOGS_ENDPOINT -u OTEL_EXPORTER_OTLP_PROTOCOL -u OTEL_EXPORTER_OTLP_HEADERS -u OTEL_RESOURCE_ATTRIBUTES -u OTEL_SERVICE_NAME"
|
|
115
|
+
|
|
106
116
|
/**
|
|
107
117
|
* Branch actually checked out for a repo: the worker-level choice (made at creation, applies to
|
|
108
118
|
* every repo of the project) wins over the project-level default carried by the repository itself.
|
|
@@ -1140,7 +1150,7 @@ export function buildSetupScript(params: SetupScriptParams): { script: string }
|
|
|
1140
1150
|
" while IFS= read -r _ep; do",
|
|
1141
1151
|
' if [ -f "$_ep" ]; then',
|
|
1142
1152
|
' echo "Starting entrypoint: $_ep"',
|
|
1143
|
-
' "$_ep" &',
|
|
1153
|
+
' ' + ENTRYPOINT_WITHOUT_OTEL + ' "$_ep" &',
|
|
1144
1154
|
" fi",
|
|
1145
1155
|
" done < " + FEATURE_ENTRYPOINTS_FILE,
|
|
1146
1156
|
"fi",
|
|
@@ -1306,7 +1316,7 @@ export function buildStartScript(params: StartScriptParams): { script: string; h
|
|
|
1306
1316
|
" while IFS= read -r _ep; do",
|
|
1307
1317
|
' if [ -f "$_ep" ]; then',
|
|
1308
1318
|
' echo "Starting entrypoint: $_ep"',
|
|
1309
|
-
' "$_ep" &',
|
|
1319
|
+
' ' + ENTRYPOINT_WITHOUT_OTEL + ' "$_ep" &',
|
|
1310
1320
|
" fi",
|
|
1311
1321
|
" done < " + FEATURE_ENTRYPOINTS_FILE,
|
|
1312
1322
|
"fi",
|
|
@@ -1559,7 +1569,7 @@ export function buildContainerScript(params: StartScriptParams): { script: strin
|
|
|
1559
1569
|
" while IFS= read -r _ep; do",
|
|
1560
1570
|
' if [ -f "$_ep" ]; then',
|
|
1561
1571
|
' echo "Starting entrypoint: $_ep"',
|
|
1562
|
-
' "$_ep" &',
|
|
1572
|
+
' ' + ENTRYPOINT_WITHOUT_OTEL + ' "$_ep" &',
|
|
1563
1573
|
" fi",
|
|
1564
1574
|
" done < " + FEATURE_ENTRYPOINTS_FILE,
|
|
1565
1575
|
"fi",
|