census-instrumentation / opencensus-go

A stats collection and distributed tracing framework
http://opencensus.io
Apache License 2.0
2.06k stars 327 forks source link

Benchmark for HTTP client tracing #461

Closed semistrict closed 6 years ago

semistrict commented 6 years ago

We'd like to integrate tracing into the Google Cloud libraries. Before we do this, we need a benchmark showing the overhead of tracing. Things we might want to explore:

semistrict commented 6 years ago

/cc @odeke-em

odeke-em commented 6 years ago

Cool @ramonza. Could we try sketching out the work we want to do, or are you already working on this already?

I was thinking

Different sampling rates:

a) Make a handler with no tracing enabled and no span creation either b) Make the same handler with a created span and end the span on deferral c) If the probability is x, send at least 1 + (1/x) requests e.g if x = 0.5, send at least 1 + 1/0.5 = 3 requests d) Run them through a benchmarking func

Exporter enabled/not enabled

Perhaps repeating what we did above?

zPages enabled/not enabled

Ditto

semistrict commented 6 years ago

Fixed in #467