Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

timecraft: remove log resource type #50

Merged
merged 2 commits into from
Jun 2, 2023

Conversation

achille-roussel
Copy link
Contributor

This PR removes the log resource type, merging the information we were displaying into the process resource type.

Here are a few examples:

$ ./timecraft describe ps 161ee981-4c5b-4599-94a6-b19e2d44dfa4
ID:      161ee981-4c5b-4599-94a6-b19e2d44dfa4
Start:   20h ago, Thu, 01 Jun 2023 13:25:50 PDT
Runtime: timecraft (devel)
Modules:
  sha256:74080192e42e359ae621d939f2b7bb56072f94dce757c42c5de666f25f101aff: (none) (6.82 MiB)
Args:
  http.wasm
  /Users/achilleroussel/wasm/http.wasm
Env:
  ...
Records: 3258, 1 batch(es), 1 segment(s), 28 KiB/660 KiB +72 B (compression: 95.76%)
---
SEGMENT  RECORDS  BATCHES  DURATION  SIZE    UNCOMPRESSED SIZE  COMPRESSED SIZE  COMPRESSION RATIO
0        3258     1        2s        28 KiB  660 KiB            28 KiB           95.76%
$ ./timecraft describe ps 161ee981-4c5b-4599-94a6-b19e2d44dfa4  -o yaml
descriptor:
  mediaType: application/vnd.timecraft.process.v1+json
  digest: sha256:c7a0fd71a36201d0d8692ead66f405b10336b6a5a80e50bb1f42039342ee2191
  size: 388
  annotations:
    timecraft.object.mediatype: application/vnd.timecraft.process.v1+json
data:
  id: 161ee981-4c5b-4599-94a6-b19e2d44dfa4
  startTime: 2023-06-01T20:25:50.7778Z
  config:
    mediaType: application/vnd.timecraft.config.v1+json
    digest: sha256:d4ec352429bc595eacf140f1d2f2712e38c4842b0e8c595b65021e4d8bc42ad5
    size: 2989
    annotations:
      timecraft.object.mediatype: application/vnd.timecraft.config.v1+json
segments:
  - createdAt: "2023-06-01T20:25:54.726597246Z"
    size: 28694
    recordBatches:
      - numRecords: 3258
        firstOffset: 0
        firstTimestamp: "2023-06-01T20:25:54.737847246Z"
        lastTimestamp: "2023-06-01T20:25:57.444562246Z"
        uncompressedSize: 675592
        compressedSize: 28622
        compression: zstd

Signed-off-by: Achille Roussel <[email protected]>
@achille-roussel achille-roussel merged commit 9585fc6 into main Jun 2, 2023
3 checks passed
@achille-roussel achille-roussel deleted the remove-log-resource-type branch June 2, 2023 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants