Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app] Improve instrumentation middleware #390

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

ricoberger
Copy link
Member

We unified the exported function name across the httpmetrics, httplog
and httptracer middleware. They all export a Handler function which can
be used in the router.

The logging and tracing middleware also catchs panics now to write a log
line / create a span.

Besides that we also fixed a small bug caused by the notification
drawer, introduced in #389. Because of the notification drawer the
drawer in the PageSectionContent component wasn't using it's full height
anymore, which caused problems for the select boxes in the toolbar and
the pages showing graphs via cytoscape. This should be fixed now.

We unified the exported function name across the httpmetrics, httplog
and httptracer middleware. They all export a Handler function which can
be used in the router.

The logging and tracing middleware also catchs panics now to write a log
line / create a span.

Besides that we also fixed a small bug caused by the notification
drawer, introduced in #389. Because of the notification drawer the
drawer in the PageSectionContent component wasn't using it's full height
anymore, which caused problems for the select boxes in the toolbar and
the pages showing graphs via cytoscape. This should be fixed now.
@codecov-commenter
Copy link

Codecov Report

Merging #390 (6d54578) into main (8edfb2f) will decrease coverage by 0.17%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #390      +/-   ##
==========================================
- Coverage   45.37%   45.20%   -0.18%     
==========================================
  Files         134      134              
  Lines       10338    10377      +39     
==========================================
  Hits         4691     4691              
- Misses       5569     5608      +39     
  Partials       78       78              
Impacted Files Coverage Δ
pkg/hub/hub.go 0.00% <0.00%> (ø)
pkg/middleware/httplog/httplog.go 0.00% <0.00%> (ø)
pkg/middleware/httpmetrics/httpmetrics.go 0.00% <0.00%> (ø)
pkg/middleware/httptracer/httptracer.go 0.00% <0.00%> (ø)
pkg/satellite/satellite.go 0.00% <0.00%> (ø)

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 8edfb2f...6d54578. Read the comment docs.

@ricoberger ricoberger merged commit 17c699b into main Jul 10, 2022
@ricoberger ricoberger deleted the app-improve-instrumentation-middleware branch July 10, 2022 16:13
@ricoberger ricoberger added the changelog: added A new feature was added label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: added A new feature was added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants