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

[Wf-Diagnostics] introduce emitter interface in w/f diagnostics #6309

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

sankari165
Copy link
Member

@sankari165 sankari165 commented Sep 26, 2024

What changed?
Workflow Diagnostics has a emitter interface that produces messages to a kafka topic

Why?
this emitter will be used to emit usage logs from workflow diagnostics runs to a pinot table

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.21%. Comparing base (11c3626) to head (d61f3c8).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
service/worker/diagnostics/analytics/emitter.go 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
service/worker/diagnostics/analytics/emitter.go 91.30% <91.30%> (ø)

... and 17 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

service/worker/diagnostics/analytics/emitter.go Outdated Show resolved Hide resolved
msg[DiagnosticsStartTime] = data.DiagnosticsStartTime
msg[DiagnosticsEndTime] = data.DiagnosticsEndTime

serializedMsg, err := json.Marshal(msg)
Copy link
Member

Choose a reason for hiding this comment

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

why not just serialize WfDiagnosticsUsageData? It that to have some compatibility?

Copy link
Member Author

Choose a reason for hiding this comment

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

am following whats done in visibility. will double check with Neil too

@sankari165 sankari165 enabled auto-merge (squash) September 26, 2024 13:08
@sankari165 sankari165 merged commit 0d893e2 into cadence-workflow:master Sep 26, 2024
18 checks passed
return err
}

pinotMsg := &indexer.PinotMessage{
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this layer be visibility-store agnostic?

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.

3 participants