This PR removes all the privileged references to child_of and follows_from reference types. In addition, it renames SpanReference into Reference as of the standard does not mention the term span reference and the it is a shorter name that is convinient:
// before
$reference = SpanReference::create(SpanReference::CHILD_OF, $context);
// after
$reference = Reference::create(Reference::CHILD_OF, $context);
Finally it also adds the InvalidReferencesSet exception which is meant to be used for when the instrumentor provides more than one parent reference (e.g. two child_of or two follows_from or etc).
This PR removes all the privileged references to
child_of
andfollows_from
reference types. In addition, it renamesSpanReference
intoReference
as of the standard does not mention the termspan reference
and the it is a shorter name that is convinient:Finally it also adds the
InvalidReferencesSet
exception which is meant to be used for when the instrumentor provides more than one parent reference (e.g. twochild_of
or twofollows_from
or etc).Ping @felixfbecker @beberlei @yurishkuro