implement enabled_span
and enabled_event
#1900
Merged
enabled_span
and enabled_event
#1900