Skip to content

feat: Log view handler#66

Merged
findingrish merged 5 commits intomainfrom
log-view-handler
Apr 19, 2021
Merged

feat: Log view handler#66
findingrish merged 5 commits intomainfrom
log-view-handler

Conversation

@findingrish
Copy link
Copy Markdown

@findingrish findingrish commented Apr 16, 2021

Add LogEventView
hypertrace/hypertrace#224

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2021

Codecov Report

Merging #66 (5be6d05) into main (df8ac5c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #66   +/-   ##
=========================================
  Coverage     82.03%   82.03%           
  Complexity      377      377           
=========================================
  Files            37       37           
  Lines          1453     1453           
  Branches        148      148           
=========================================
  Hits           1192     1192           
  Misses          193      193           
  Partials         68       68           
Flag Coverage Δ Complexity Δ
integration 82.03% <ø> (ø) 14.00 <ø> (ø)
unit 79.59% <ø> (ø) 363.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57cec3d...5be6d05. Read the comment docs.

"LOG_EVENT.timestamp_nanos": "timestamp_nanos",
"LOG_EVENT.spanId": "span_id",
"LOG_EVENT.traceId": "trace_id",
"LOG_EVENT.attributes": "attributes"
Copy link
Copy Markdown
Author

@findingrish findingrish Apr 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think no extra handling is needed for attributes field which is a json string.
Currently map is stored in two columns, which is then combined to a Map<String, String> and then converted to a Json string, thus it needs to be specially handled.
attributes field is already stored as a json string (with 1 level nesting).

Copy link
Copy Markdown
Contributor

@aaron-steinfeld aaron-steinfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int test issue

@github-actions

This comment has been minimized.

viewName = logEventView
bytesFields = ["span_id", "trace_id"]
fieldMap = {
"LOG_EVENT.timestamp_nanos": "timestamp_nanos",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up on this line if the attr key changes

@github-actions

This comment has been minimized.

@kotharironak
Copy link
Copy Markdown
Contributor

@rish691 Pl. add description and associated embedded log events issue ticket.

Copy link
Copy Markdown
Contributor

@aaron-steinfeld aaron-steinfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm pending description

@findingrish findingrish merged commit 12ba0b8 into main Apr 19, 2021
@findingrish findingrish deleted the log-view-handler branch April 19, 2021 15:44
@github-actions
Copy link
Copy Markdown

Unit Test Results

  22 files    22 suites   6s ⏱️
110 tests 110 ✔️ 0 💤 0 ❌

Results for commit 12ba0b8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants