Closed aspett closed 6 years ago
I agree with @asummers. Either one of those changes would suffice for me. I'll merge afterwards , and after I take a closer look once more to confirm everything. It looks straightforward though, should be no issues.
Hmmm. While it might be possible to do that, I don't think it makes sense to not have a parent in this case? What scenario are you imagining where there might not be a parent span?
I think with datadog you always have a top level span, but with other tracing implementations that isn't required. Let's not worry about it for now, and if someone wants it they can add it/ ask for it.
Oh gotcha. I think this would work as-is. I've reversed the conditional for now, but agree it may be a little difficult to get this perfect without another adapter going. Thanks for looking over this
Released and available on hex as 1.3.4
Adds support for distributed tracing using the
x-datadog-trace-id
andx-datadog-parent-id
as discussed in https://github.com/zachdaniel/spandex/issues/6.