-
Notifications
You must be signed in to change notification settings - Fork 0
Clean up Span format #60
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
Comments
Node Id might already be. Fuzzy search for how IdSortable is used elsewhere. |
There is no specific type for /**
* Encodes an multibase ID string
*/
public toMultibase(format: MultibaseFormats): string {
return utils.toMultibase(this, format);
} You might be remembering the type Id = IdInternal & number; |
From my research, I couldn't find anywhere in Polykey where we passed the
|
I just realised something — if nothing is consuming the events, then all the events will keep accumulating in memory in the queue, never to be consumed. Maybe I can let the user willingly discard all events if they don't intend on consuming them? // We don't intend to consume span events
tracer.discardEvents(); It's a minor change which I can get merged alongside this issue. |
No if you read the observability issue, you would realise that by doing push flow subject observable, no memory will be accumulated, instead the data must be reacted to with a sink. That is better than expecting the user to garbage collect. In fact you're introducing a control panel potential footgun. You do not want to do this. Complexity needs to be reduced, not increased. Change it so that you start involving observable structure as explained with rxjs. Talk to Ed if you need to elaborate.
|
Well do a fuzzy search over the usage of IdSortable. I'm sure it is being used somewhere perhaps in the id domain.
|
I made a new issue #65 to track this, but it needs some discussion. Mainly because there would be some impact when writing events using a reactive callback. We might be able to mitigate it if we write in chunks, but then that might mean that on slower systems, backpressure might become an issue and hold back the main program from execution, which defeats the purpose of tracer being transparent. We can shift this discussion over to #65 now. |
Back pressure isn't a problem because it's queued up in-memory. This makes sense since tracing is aligned with async. Started with an infinite queue and monitor
|
Specification
As per some comments on #15, some design changes have been proposed and must be implemented.
Additional context
Example new type (instead of a single unified one):
Tasks
start
andstop
orbegin
andend
instead ofstart
andend
.parentId
may or may not exist for both start and stop, and that means there's a possibility of a spans in one location and then fading out and then fading into another locationThe text was updated successfully, but these errors were encountered: