opentracing-php icon indicating copy to clipboard operation
opentracing-php copied to clipboard

Add SpanOptions::getParent

Open jcchavezs opened this issue 6 years ago • 1 comments

Background

Most of the tracer implementations only support child_of reference type.

Problem

When implementing the startSpan method we need to iterate over all references in order to find the child_of reference.

Proposal

Having a SpanOptions::getParent encapsulating this method would be very useful.

Ping @tedsuo @felixfbecker @beberlei @lvht @yurishkuro

jcchavezs avatar Feb 09 '18 03:02 jcchavezs

can it be a private helper method instead? Making it part of SpanOptions extends the API surface.

yurishkuro avatar Feb 09 '18 03:02 yurishkuro