Bluehouse-Technology / otter

Support for OpenTracing in Erlang
https://hexdocs.pm/otter/
Apache License 2.0
105 stars 17 forks source link

added new api otter_span_spdict_api to support nested spans for better tracing #22

Open vishnureddy7 opened 4 years ago

vishnureddy7 commented 4 years ago

added a new api called otter_span_spdict_api to support nested spans without needing to pass span id across functions example:- function1() -> otter_span_spdict_api:start("span1"), .... function2(), .... otter_span_spdict_api:log("span1 logs"), .... otter_span_spdict_api:finish().

function2() -> otter_span_spdict_api:start("span2"), ... otter_span_spdict_api:log("span2 logs"), ... otter_span_spidct_api:finish().

here span2 will be inside span1 as a part instead of separate spans.