Philippe GASSMANN 3162db4e93 fmt: Track duplicate spans in fmt context (#361)
## Motivation

Entering twice in the same span causes the span to be lost after the
second span got droped, see #358 

## Solution

Duplicate spans are tracked in the `CONTEXT` thread local stack  and
ignored when finding the current span id. Spans are always pushed on the
`CONTEXT` stack. This way, when a span is dropped, its ref count
reflects the content of the thread local

Fixes #358
2019-09-25 14:39:40 -07:00
..