Skip to content

Conversation

@saltbo
Copy link
Contributor

@saltbo saltbo commented Apr 4, 2023

Description

Which issue(s) this PR fixes:

Fixes #2770

Testing

Checklist:

  • I ran tests as well as code linting locally to verify my changes.
  • I have done manual verification of my changes, changes working as expected.
  • I have added new tests to cover my changes.
  • My changes follow contributing guidelines of Fission.
  • I have signed all of my commits.

@saltbo saltbo changed the title feat: add a access logger for the router feat: add an access logger for the router Apr 4, 2023
@saltbo saltbo force-pushed the feature/router-accesslog branch 2 times, most recently from 796b1d7 to eb0b4ae Compare April 4, 2023 09:05
@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

❌ Patch coverage is 40.67797% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.02%. Comparing base (a5f3402) to head (60af3ba).
⚠️ Report is 212 commits behind head on main.

Files with missing lines Patch % Lines
pkg/router/accesslog/upstream.go 17.24% 23 Missing and 1 partial ⚠️
pkg/router/httpTriggers.go 0.00% 5 Missing ⚠️
pkg/router/accesslog/logger.go 86.36% 2 Missing and 1 partial ⚠️
pkg/router/router.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2771      +/-   ##
==========================================
+ Coverage   20.87%   21.02%   +0.15%     
==========================================
  Files          68       70       +2     
  Lines        7339     7399      +60     
==========================================
+ Hits         1532     1556      +24     
- Misses       5693     5727      +34     
- Partials      114      116       +2     
Flag Coverage Δ
unittests 21.02% <40.67%> (+0.15%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@saltbo saltbo force-pushed the feature/router-accesslog branch from 61d11b1 to d2a2743 Compare May 8, 2023 09:58
@shubham-bansal96
Copy link
Contributor

@saltbo I was trying to verify your changes but somehow I am not able to see the logs as mentioned by you in this PR.
I have enabled DISPLAY_ACCESS_LOG env variable in using helm chart and i can see this env variable is being set inside container.
I created a new function and test it, but i can't see the logs for router as you mentioned.

Please let me know if i miss anything in order to get the logs.

@saltbo
Copy link
Contributor Author

saltbo commented May 17, 2023

part fixed. it can output the log, but not contains upstream info. @shubham-bansal96

My current implementation is not very feasible. I haven't thought of a better way to get upstream info. If you have any ideas, please let me know.

@saltbo saltbo force-pushed the feature/router-accesslog branch from 910b3b9 to 60af3ba Compare May 17, 2023 08:15
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.

Invalid env DISPLAY_ACCESS_LOG

2 participants