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

Enhance workflow logs #7222

Merged
merged 8 commits into from Nov 30, 2023
Merged

Conversation

shivamkm07
Copy link
Contributor

Description

This PR adds more logs to runtime for better debugging.

Issue reference

Please reference the issue this PR will close: #7065

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
@shivamkm07 shivamkm07 requested review from a team as code owners November 21, 2023 13:50
Copy link
Contributor

@halspang halspang left a comment

Choose a reason for hiding this comment

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

Mostly small suggestions, overall looks good.

pkg/runtime/wfengine/component.go Show resolved Hide resolved
pkg/runtime/wfengine/component.go Show resolved Hide resolved
@@ -58,7 +58,7 @@ const (

var (
wfLogger = logger.NewLogger("dapr.runtime.wfengine")
wfBackendLogger = logger.NewLogger("wfengine.backend")
wfBackendLogger = logger.NewLogger("wfengine.durabletask.backend")
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this change the anything about the logs? Like will customers who have setup scrapes/scans of the logs be broken by this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

Our logs aren't stable so it's probably ok.

However, I don't know if exposing an internal thing (that it uses durable task library) adds anything compared to what it is today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the change just to differentiate that these logs coming from DurableTask library and not Dapr runtime, as mentioned here: #7065 (comment) But if it breaks anything, I can remove it as well.

pkg/runtime/wfengine/workflow.go Outdated Show resolved Hide resolved
pkg/runtime/wfengine/workflow.go Outdated Show resolved Hide resolved
pkg/runtime/wfengine/workflow.go Outdated Show resolved Hide resolved
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 24 lines in your changes are missing coverage. Please review.

Comparison is base (9189949) 64.56% compared to head (3d9c128) 64.57%.
Report is 30 commits behind head on master.

❗ Current head 3d9c128 differs from pull request most recent head 8bb09d4. Consider uploading reports for the commit 8bb09d4 to get more accurate results

Files Patch % Lines
pkg/runtime/wfengine/workflow.go 53.33% 11 Missing and 3 partials ⚠️
pkg/runtime/wfengine/activity.go 46.66% 8 Missing ⚠️
pkg/runtime/wfengine/component.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7222   +/-   ##
=======================================
  Coverage   64.56%   64.57%           
=======================================
  Files         225      225           
  Lines       21050    21037   -13     
=======================================
- Hits        13591    13584    -7     
+ Misses       6297     6290    -7     
- Partials     1162     1163    +1     

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

Copy link
Contributor

@mukundansundar mukundansundar left a comment

Choose a reason for hiding this comment

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

@shivamkm07 small change

pkg/runtime/wfengine/activity.go Show resolved Hide resolved
@mukundansundar mukundansundar merged commit d51d17f into dapr:master Nov 30, 2023
18 of 20 checks passed
@JoshVanL
Copy link
Contributor

@mukundansundar a reminder that we are blocking workflow PRs until #7241

JoshVanL pushed a commit to JoshVanL/dapr that referenced this pull request Dec 4, 2023
* Adding more logs for workflow executions

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* fix typo

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* Adding quotes to be consistent

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* capitalizing log start

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

---------

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Loong Dai <long.dai@intel.com>
DeepanshuA pushed a commit to DeepanshuA/dapr that referenced this pull request Dec 11, 2023
* Adding more logs for workflow executions

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* fix typo

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* Adding quotes to be consistent

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* capitalizing log start

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

---------

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Loong Dai <long.dai@intel.com>
JoshVanL pushed a commit to JoshVanL/dapr that referenced this pull request Dec 14, 2023
* Adding more logs for workflow executions

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* fix typo

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* Adding quotes to be consistent

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* capitalizing log start

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

---------

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Loong Dai <long.dai@intel.com>
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
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.

Enhance Logging for Workflow
7 participants