-
Notifications
You must be signed in to change notification settings - Fork 137
Custom events cannot render in Appdash (cannot call RegisterEvent) #67
Comments
The root of this issue seems to be the annotation serialization model that we've chosen.
The stringent requirement on event registration means that custom event types don't render properly when running the standalone We could formalize the annotation (read: struct field) name for both the starting and ending times of a timespan (or the timestamp for a timestamped event) but this would effectively render the The least imposing option I can think of is to keep the redundant |
The idea I had, without any idea of how possible or difficult it would be to implement: Tie the registration of the event to a collector, and send a "schema serialization" to the collector to inform it how a particularly named event is structured. In our app we currently call |
@joeshaw Right, I think your solution would work. It does require a change to the core annotation serialization model, however. I'm not opposed to changing the annotation serialization model, and it's required in order to fix this, but it does need some good thought on what the best approach is (how does Zipkin/Dapper handle it? what other approaches are there? etc), I just want to ensure the solution is not rushed 😄 For now I think the best approach is to require modification of the
(At least until I'm certain of a proper solution to this issue). |
@slimsag yep, not trying to rush you on this. We've worked around this in the meantime exactly as you suggest. Thanks! |
The proper solution here is probably the |
When running
appdash
on the command line, custom events don't render. This is because nobody in the entire application can invokeRegisterEvent
with the new event type.I have a few ideas on how we can fix this.
As a fast-and-easy hack for now: you can copy the source for
cmd/appdash
(or just modify it directly) such that a call toRegisterEvent
for your type is made.Reported by @joeshaw over Slack
Here is what running
cmd/appdash
should look like:And here is what it ends up looking like (because the custom event type is not registered):
The text was updated successfully, but these errors were encountered: