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

Add activity execution log sink #5833

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Add activity execution log sink #5833

merged 3 commits into from
Jul 24, 2024

Conversation

raymonddenhaan
Copy link
Contributor

@raymonddenhaan raymonddenhaan commented Jul 24, 2024

Added Sink and extracted generic logic for easier setup of logging of execution log records of both Workflow and Activity


This change is Reviewable

Introduced an interface `IActivityExecutionLogSink` for storing workflow execution log records and implemented it as `StoreActivityExecutionLogSink`. This centralizes and streamlines the handling of persisting execution logs into the workflow's runtime, thus making the process more modular and maintainable. The `PersistActivityExecutionLogMiddleware` has also been refactored to use this sink, replacing the direct usage of the workflow execution log store.
Replaced specific logging interfaces and implementations with generic ones. The individual interfaces for workflow and activity execution logging have been replaced with a single ILogRecordExtractor and ILogRecordSink interface. Specific implementations have been adjusted to use these new interfaces. This allows for greater flexibility and reuse of logging code.
The `ILogRecordStore` interface has been introduced to provide a centralized place for handling log records. Both `IActivityExecutionStore` and `IWorkflowExecutionLogStore` have been updated to inherit from this new interface. As a result of this change, the `SaveManyAsync` methods in these two interfaces have been removed to avoid redundancy.
@raymonddenhaan raymonddenhaan added the enhancement New feature or request label Jul 24, 2024
@sfmskywalker sfmskywalker merged commit c413f21 into patch/3.2.x Jul 24, 2024
6 checks passed
@sfmskywalker sfmskywalker deleted the enh/activity_sink branch July 24, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants