You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: add CleanupFunc type alias and address review feedback
- Add CleanupFunc type alias for better self-documentation
- Fix typo: 'exprimental' -> 'experimental' in README
- Shorten OpenTelemetry section in README, link to detailed docs
- Add production security warning for TLS configuration
- Clarify design rationale for phase attributes vs spans
- Improve getLeewayVersion documentation
Co-authored-by: Ona <no-reply@ona.com>
Copy file name to clipboardExpand all lines: README.md
+3-12Lines changed: 3 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -596,29 +596,20 @@ variables have an effect on leeway:
596
596
- `LEEWAY_CACHE_DIR`: Location of the local build cache. The directory does not have to exist yet.
597
597
- `LEEWAY_BUILD_DIR`: Working location of leeway (i.e. where the actual builds happen). This location will see heavy I/O which makes it advisable to place this on a fast SSD or in RAM.
598
598
- `LEEWAY_YARN_MUTEX`: Configures the mutex flag leeway will pass to yarn. Defaults to "network". See https://yarnpkg.com/lang/en/docs/cli/#toc-concurrency-and-mutex for possible values.
599
-
- `LEEWAY_EXPERIMENTAL`: Enables exprimental features
599
+
- `LEEWAY_EXPERIMENTAL`: Enables experimental features
600
600
601
601
# OpenTelemetry Tracing
602
602
603
603
Leeway supports distributed tracing using OpenTelemetry for build performance visibility.
The OpenTelemetry SDK automatically reads standard `OTEL_EXPORTER_OTLP_*` environment variables.
620
-
621
-
**For detailed configuration, examples, and span attributes, see [docs/observability.md](docs/observability.md).**
612
+
See [docs/observability.md](docs/observability.md) for configuration, examples, and span attributes.
622
613
623
614
# Provenance (SLSA) - EXPERIMENTAL
624
615
leeway can produce provenance information as part of a build. At the moment only [SLSA Provenance v0.2](https://slsa.dev/provenance/v0.2) is supported. This support is **experimental**.
Copy file name to clipboardExpand all lines: docs/observability.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Root Span (leeway.build)
26
26
-**Root Span**: Created when `BuildStarted` is called, represents the entire build operation
27
27
-**Package Spans**: Created for each package being built, as children of the root span
28
28
29
-
Build phase durations (prep, pull, lint, test, build, package) are captured as attributes on package spans, not as separate spans.
29
+
Build phase durations (prep, pull, lint, test, build, package) are captured as attributes on package spans, not as separate spans. This design provides lower overhead and simpler hierarchy while maintaining visibility into phase-level performance.
0 commit comments