-
Notifications
You must be signed in to change notification settings - Fork 773
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
Update the custom processor project #996
Conversation
|
||
// TODO: seems buggy if you remove A and B here, MyActivityProcessor(C).OnEnd is not called. | ||
// TODO: should the dispose order be C, B, A or A, B C? | ||
.AddProcessorPipeline(p => p.AddProcessor(current => new MyActivityProcessor("A"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is adding multiple processor pipelines. I guess you wanted to add multiple processors to the same, single pipeline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I was using this to showcase how pipeline could be confusing, and I think we need to change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fan out scenario is a separate topic, and the name should be changed #979.
public MyActivityProcessor() | ||
private readonly string name; | ||
|
||
public MyActivityProcessor(string name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to take the next ActivityProcessor, and call its corresponding methods in Start/End/etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For demonstration I was trying to make it simple by not chaining the processors at all.
Codecov Report
@@ Coverage Diff @@
## master #996 +/- ##
==========================================
+ Coverage 68.41% 68.47% +0.06%
==========================================
Files 220 220
Lines 6002 6002
Branches 983 983
==========================================
+ Hits 4106 4110 +4
+ Misses 1621 1619 -2
+ Partials 275 273 -2
|
Trying to use the docs and tutorial projects to drive for better design and implementation.
This change should give us some idea about the processor use case.
I plan to work on the sampler and exporter tutorial projects in the next few PRs, then we can use these projects to question ourselves "are these the developer experience we want and are there places we can improve" - similar like what we did here.
Changes
Added multiple processors demo.