The span and context struct should be in common with the nprobe class and it should also include the serialization and deserialization mechanism.