Skip to content

redo OTel engine => client pipeline - #7996

Merged
vito merged 83 commits into
dagger:mainfrom
vito:otel-redux
Aug 13, 2024
Merged

vito merged 83 commits into
dagger:mainfrom
vito:otel-redux

Conversation

@vito

@vito vito commented Jul 20, 2024 •

Copy link
Copy Markdown
Contributor

Replaces the live one-shot pub/sub approach with saving telemetry to a per-client database.

Previously:

  • The engine configured PubSub as the global tracer provider for all telemetry in the engine.
  • A SpanProcessor would carefully annotate each span with the originating client ID.
  • Clients would subscribe to their own OTLP traffic via a side channel gRPC service.
  • Everything would export to PubSub, which would send relevant spans to all affected clients, including keeping track of parents
  • PubSub would drain when all spans for a client have completed and all stdio logs saw EOF.

This model forced every decision to be made in "one shot" - during exporting. There was no persistence, so the only way to tell we got all of a client's data is to watch for its activity to stop, which is fraught with peril.

Now:

  • The engine's globally configured OTel stack only captures engine-wide telemetry, i.e. everything but client traffic.
  • Each cilent has its own TracerProvider and LoggerProvider installed for each request, which writes to the client's own SQLite database.
  • Each client DB stores OTLP payloads with autoincrementing IDs so it's easy to tell the ordering of events (important for subscribing later).
  • Child clients also write to their parent client's databases (they're just additional SpanProcessors in the client's singular TracerProvider).
  • Child clients now subscribe over HTTP (no more gRPC) using SSE and poll for new data every <nearly-immediate-interval=100ms> using the autoincrementing event ID as a cursor.
  • When a client shuts down we stop polling for new data.

Now that there's persistence we can decouple the event writing from the event reading and just read all events until conceptual EOF when a client shuts down. No more draining on spans completing. No more hanging waiting for new events. Just a pretty straightforward state machine.

TODO:

  • Garbage collect client DBs
  • Figure out what's causing orphaned gRPC service spans

Worth mentioning:

  • Could maybe use this per-client database for more things in the future. It's kinda neat.
  • Client databases migrate on initialization, so we don't need to worry about migrating old data.
    • Curiously, clients will be initialized multiple times in some scenarios, so the migration just does CREATE TABLE IF NOT EXISTS.
  • The engine will hold more files open now, since there's a DB per-client, and subscribers hold a separate connection from writers. I've bumped the open files limit in dagger-entrypoint.sh to match the value we set in our production CI runners (1048576). Otherwise it was picking up the super low default of 1024 on my system which made tests fail.
  • The Engine test and testdev jobs now redirect their dagger call output to a file and upload it as an artifact, to work around Long log lines slow down the runner actions/runner#1031
  • The SSE OTLP endpoint could likely be a GraphQL subcription in the future, but didn't want to boil the ocean in this PR.

@vito
vito force-pushed the otel-redux branch 14 times, most recently from d3f4e1e to 2bc95a7 Compare July 24, 2024 18:45
@samalba samalba added the kind/bug Something isn't working label Jul 31, 2024
@vito
vito force-pushed the otel-redux branch 2 times, most recently from cc70038 to b0a02bc Compare August 2, 2024 01:38
@vito

This comment was marked as resolved.

@vito

vito commented Aug 7, 2024 •

Copy link
Copy Markdown
Contributor Author

Follow-up: the only unique flake was TestDaggerListen which seemed to be caused by a race condition with subscribing to telemetry while submitting other client requests. I originally wanted to make subscribing synchronous (sync attach, async stream) but that caused this test to hang, even though SSE chunked responses should be able to immediately return the headers. As a band-aid I made it fully async, but that was causing a lot of unpredictability (and I suspect the hang), so I wanted to try making it sync again.

I found the root cause for the hang and fixed it in ce1fb22 ("synchronously subscribe, fix client buffering") - now the io.Copy in the engine client ServeHTTP that proxies the response will additionally (http.Flusher).Flush() after every write. With that change, synchronously subscribing works - we get the headers back, and the initial subscribed event, and block like normal.

After making that change I haven't seen the test hang; every testdev has been green. Knock on wood.

I can spend some more time updating the PR description, but I'm marking this "ready for review" as I'm running out of TODOs, in case any of y'all want to take an early peek.


ALSO: I kept the changes that redirect our GHA workflow logs to files that get uploaded as artifacts, since I don't want to waste too much time working around their bug, and downloading the logs as an artifact is pretty decent anyway compared to the "View Raw Logs -> copy URL -> curl" flow I've had to do.

@vito
vito marked this pull request as ready for review August 7, 2024 22:21
@vito
vito requested a review from a team as a code owner August 7, 2024 22:21
vito and others added 19 commits August 13, 2024 10:10
Signed-off-by: Alex Suraci <[email protected]>
this re-evaluates when the same client initializes again, which is
currently the case for repeated sequential calls in certain scenarios

Signed-off-by: Alex Suraci <[email protected]>
was causing a 'failed to marshal log record body' error in logs

Signed-off-by: Alex Suraci <[email protected]>
there's no need to require these to be UTF-8 (unintended consequence of
protojson), and no need to query these structurally, so let's just keep
it BLOBby

Signed-off-by: Alex Suraci <[email protected]>
we can't always expect the caller to have configured trace context, and
this isn't really an appropriate spot to be generating a ton of traces,
so skip creating the span instead

Signed-off-by: Alex Suraci <[email protected]>
github's secret scrubbing currently chokes on large output, and you have
to 'view raw logs' to see everything anyway, might as well just download
an artifact instead.

Signed-off-by: Alex Suraci <[email protected]>
also make sure to keep still-active clients in case there's one sitting
around for an hour

Signed-off-by: Alex Suraci <[email protected]>
otherwise telemetry gets shut down for good as soon as the first client
goes away, leaving the rest stranded

Signed-off-by: Alex Suraci <[email protected]>
not only is this much nicer to use since you can skip the extra hop, but
it also fixes the "leaking" gRPC session attachable spans.

to be honest it's not clear to me _why_ it fixes it, since i would
expect those to end up beneath the span Buildkit creates, but we already
know there's wonkiness in Buildkit's span setup, and we want this change
independently, so going with it.

Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
tempted to go into more detail, but best to just click the PR

Signed-off-by: Alex Suraci <[email protected]>
@vito

vito commented Aug 13, 2024

Copy link
Copy Markdown
Contributor Author

@jedevc for sure - added! Will merge on green.

@vito
vito merged commit 718b5d7 into dagger:main Aug 13, 2024
@vito
vito deleted the otel-redux branch August 13, 2024 15:42
scottames referenced this pull request in scottames/dots Aug 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://togithub.com/dagger/dagger) | patch |
`v0.12.4` -> `v0.12.5` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15)

[Compare
Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5)

##### Added

- cli: allow calling core functions directly by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310)
\
    Usage: `dagger core <function>` \
    Example: `dagger core container from --address=alpine terminal`

Works the same as `dagger call`, but instead of loading a user module,
    it only uses functions from the core API.

    Run `dagger core --help` for available functions.

*Note that this command is experimental and the DX for calling core
functions
    in the CLI may change in the future.*
- New SDK aliases for `elixir` and `php` by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067)
\
SDKs with experimental module support (elixir and php) can now be
accessed
using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php`
respectively)
    instead of the full form
    `--sdk=github.com/dagger/dagger/sdk/<sdk>@&#8203;<version>`.
- Add `File.digest` method by
[@&#8203;TomChv](https://togithub.com/TomChv) in
[https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114)
\
This method provides an efficient way to compute a file's digest, which
    unlock optimized file comparison or check for file changes.
- Bundle CLI in the Engine image so that both parts of Dagger
(CLI+Engine) ship as a single artefact by
[@&#8203;gerhard](https://togithub.com/gerhard) in
[https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147)

##### Changed

- Reimplemented the OpenTelemetry data pipeline to avoid hangs and other
complications by [@&#8203;vito](https://togithub.com/vito) in
[https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996)

##### Fixed

- Fix `Directory.glob` to correctly handle globs with subdir prefixes by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110)
\
Previously, attempting to glob with a prefix subdir in a pattern like
`<subdir>/*` would not match any files. This should now be fixed, and
files
    in `<subdir>` will now be correctly matched.
- Fix `failed to collect IDs from parent fields` error when module
objects contain fields with nil values by
@&#8203;jedevc/[@&#8203;sipsma](https://togithub.com/sipsma) in
[https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132)
- Fixed enum lists in modules by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096)
- Fixed referring to module's own objects/interfaces/enums in
constructor signature by [@&#8203;jedevc](https://togithub.com/jedevc)
in
[https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115)
\
Previously, modules would fail to launch if they declared a constructor
that
    contained a reference to a type from it's own module in it's args.
- Fixed using custom enum types as optional arguments by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148)
\
Previously, function calls that defined an optional argument would not
be
    callable.
- Make retrieving secret from command works on Windows by
[@&#8203;wingyplus](https://togithub.com/wingyplus) in
[https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/scottames/dots).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
scottames referenced this pull request in scottames/containers Aug 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://togithub.com/dagger/dagger) | patch |
`v0.12.4` -> `v0.12.5` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15)

[Compare
Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5)

##### Added

- cli: allow calling core functions directly by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310)
\
    Usage: `dagger core <function>` \
    Example: `dagger core container from --address=alpine terminal`

Works the same as `dagger call`, but instead of loading a user module,
    it only uses functions from the core API.

    Run `dagger core --help` for available functions.

*Note that this command is experimental and the DX for calling core
functions
    in the CLI may change in the future.*
- New SDK aliases for `elixir` and `php` by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067)
\
SDKs with experimental module support (elixir and php) can now be
accessed
using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php`
respectively)
    instead of the full form
    `--sdk=github.com/dagger/dagger/sdk/<sdk>@&#8203;<version>`.
- Add `File.digest` method by
[@&#8203;TomChv](https://togithub.com/TomChv) in
[https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114)
\
This method provides an efficient way to compute a file's digest, which
    unlock optimized file comparison or check for file changes.
- Bundle CLI in the Engine image so that both parts of Dagger
(CLI+Engine) ship as a single artefact by
[@&#8203;gerhard](https://togithub.com/gerhard) in
[https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147)

##### Changed

- Reimplemented the OpenTelemetry data pipeline to avoid hangs and other
complications by [@&#8203;vito](https://togithub.com/vito) in
[https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996)

##### Fixed

- Fix `Directory.glob` to correctly handle globs with subdir prefixes by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110)
\
Previously, attempting to glob with a prefix subdir in a pattern like
`<subdir>/*` would not match any files. This should now be fixed, and
files
    in `<subdir>` will now be correctly matched.
- Fix `failed to collect IDs from parent fields` error when module
objects contain fields with nil values by
@&#8203;jedevc/[@&#8203;sipsma](https://togithub.com/sipsma) in
[https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132)
- Fixed enum lists in modules by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096)
- Fixed referring to module's own objects/interfaces/enums in
constructor signature by [@&#8203;jedevc](https://togithub.com/jedevc)
in
[https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115)
\
Previously, modules would fail to launch if they declared a constructor
that
    contained a reference to a type from it's own module in it's args.
- Fixed using custom enum types as optional arguments by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148)
\
Previously, function calls that defined an optional argument would not
be
    callable.
- Make retrieving secret from command works on Windows by
[@&#8203;wingyplus](https://togithub.com/wingyplus) in
[https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/scottames/containers).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
renovate Bot referenced this pull request in scottames/daggerverse Aug 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://togithub.com/dagger/dagger) | patch |
`v0.12.4` -> `v0.12.5` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15)

[Compare
Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5)

##### Added

- cli: allow calling core functions directly by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310)
\
    Usage: `dagger core <function>` \
    Example: `dagger core container from --address=alpine terminal`

Works the same as `dagger call`, but instead of loading a user module,
    it only uses functions from the core API.

    Run `dagger core --help` for available functions.

*Note that this command is experimental and the DX for calling core
functions
    in the CLI may change in the future.*
- New SDK aliases for `elixir` and `php` by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067)
\
SDKs with experimental module support (elixir and php) can now be
accessed
using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php`
respectively)
    instead of the full form
    `--sdk=github.com/dagger/dagger/sdk/<sdk>@&#8203;<version>`.
- Add `File.digest` method by
[@&#8203;TomChv](https://togithub.com/TomChv) in
[https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114)
\
This method provides an efficient way to compute a file's digest, which
    unlock optimized file comparison or check for file changes.
- Bundle CLI in the Engine image so that both parts of Dagger
(CLI+Engine) ship as a single artefact by
[@&#8203;gerhard](https://togithub.com/gerhard) in
[https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147)

##### Changed

- Reimplemented the OpenTelemetry data pipeline to avoid hangs and other
complications by [@&#8203;vito](https://togithub.com/vito) in
[https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996)

##### Fixed

- Fix `Directory.glob` to correctly handle globs with subdir prefixes by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110)
\
Previously, attempting to glob with a prefix subdir in a pattern like
`<subdir>/*` would not match any files. This should now be fixed, and
files
    in `<subdir>` will now be correctly matched.
- Fix `failed to collect IDs from parent fields` error when module
objects contain fields with nil values by
@&#8203;jedevc/[@&#8203;sipsma](https://togithub.com/sipsma) in
[https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132)
- Fixed enum lists in modules by
[@&#8203;helderco](https://togithub.com/helderco) in
[https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096)
- Fixed referring to module's own objects/interfaces/enums in
constructor signature by [@&#8203;jedevc](https://togithub.com/jedevc)
in
[https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115)
\
Previously, modules would fail to launch if they declared a constructor
that
    contained a reference to a type from it's own module in it's args.
- Fixed using custom enum types as optional arguments by
[@&#8203;jedevc](https://togithub.com/jedevc) in
[https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148)
\
Previously, function calls that defined an optional argument would not
be
    callable.
- Make retrieving secret from command works on Windows by
[@&#8203;wingyplus](https://togithub.com/wingyplus) in
[https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/scottames/daggerverse).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants