local tracing
See original GitHub issueThere are a number of zipkin libraries supporting local tracing (operations that spawn in-process and are not RPCs).
We’ve recently had a request by @wirehead for how to do this.
// Is this how I'm supposed to instrument a long-running function?
function ExampleTraceFunction() {
tracer.setId(tracer.createRootId());
tracer.recordMessage('start');
// do stuff here
tracer.recordMessage('end');
}
workaround
I suggested a workaround, which is to use Client annotations while we figure out how we want to address this here.
function ExampleTraceFunction() {
tracer.scoped(() => {
tracer.setId(tracer.createRootId());
tracer.recordAnnotation(new Annotation.ClientSend());
// do work
tracer.recordAnnotation(new Annotation.ClientRecv());
});
}
There’s a background issue in finagle which might steer implementation. https://github.com/twitter/finagle/issues/541
cc @fedj
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Case Investigation and Contact Tracing : Part of a ... - CDC
Case investigation and contact tracing, a core disease control measure employed by local and state health department personnel for decades, ...
Read more >Evaluating the impact of local tracing partnerships on ... - arXiv
We use the proposed approach to evaluate the impact that local tracing partnerships (LTP) had on the effectiveness of England's Test and ...
Read more >State Approaches to Contact Tracing during the COVID-19 ...
The CDC Foundation supports recruitment for the contact tracing workforce. The state and local health departments perform contact tracing. AR ...
Read more >What is Contact Tracing?
You may be asked to speak with a contact tracer or answer questions in a survey sent to you by text message from...
Read more >Local Government COVID-19 Contact Tracing Guidance
For these reasons, local governments are strongly encouraged to utilize CARES Act funding to support contact tracing efforts by their local public health ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We can do something like
then you’re guaranteed that start() and finish() will be called correctly.
ok ready to merge #156… last warning 😃
this keeps Tracer.local as a keyword that means “trace this callable” as no-one seems bothered about it.